Skip to content

Commit

Permalink
remove unneeded print
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Sep 21, 2024
1 parent 6b1bd13 commit ae4428e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions parsers/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ func ParseHTMLQueries(htmlData []byte, queries []string, nextPage string) ([]int
if nextPage != "" {
nextPageURL = doc.Find(nextPage).First().AttrOr("href", "")
}

return result, nextPageURL, nil
}
3 changes: 1 addition & 2 deletions parsers/playwright_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package parsers

import (
"fmt"
"testing"

"github.com/bjesus/pipet/common"
Expand All @@ -17,7 +16,7 @@ func TestExecutePlaywrightBlock(t *testing.T) {
}
result, err := ExecutePlaywrightBlock(block)
expected := []interface{}{[]interface{}{"Example", "Domain"}, "11\n"}
fmt.Printf("%v", result)

assert.NoError(t, err)
assert.NotNil(t, result)
assert.Equal(t, expected, result) // Mocked JSON output
Expand Down

0 comments on commit ae4428e

Please sign in to comment.