Skip to content

Commit

Permalink
alter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yiGmMk committed Jun 10, 2022
1 parent 34b27f1 commit 6ad4ab7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chromedp/chromedp_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
package chromedptool

import (
"log"
"os"
"testing"
)

func TestPrintf(t *testing.T) {
path := "./baidu.pdf"
defer os.RemoveAll(path)
h := ChromedpHandler{}

err := ChromedpHandler{}.GenPdf("https://baidu.com", path)
url, err := h.GetConnUrl()
if err != nil {
log.Println(err)
return
}
log.Println(url)

err = h.GenPdf("https://baidu.com", path)
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 6ad4ab7

Please sign in to comment.