Skip to content

Commit

Permalink
- [!] fix cascadia_test.go after API changed
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Nov 27, 2021
1 parent e9a42dd commit b1a3d29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cascadia_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import (
func TestSelectors(t *testing.T) {
for _, test := range selectorTests {
buf := bytes.NewBufferString("")
Cascadia(strings.NewReader(test.HTML), buf, []string{test.selector}, MapStringString{}, ",", false, false)
Opts.CSS, Opts.Piece, Opts.Deli,
Opts.WrapHTML, Opts.TextOut, Opts.TextRaw, Opts.Quiet =
[]string{test.selector}, MapStringString{}, ",",
false, false, false, false
Cascadia(strings.NewReader(test.HTML), buf, Opts)
got := buf.String()
if len(got) == 0 && len(test.results) == 0 {
// correct
Expand Down

0 comments on commit b1a3d29

Please sign in to comment.