From b1a3d290ff94720aa7c1d254ef5849d6d11c1b03 Mon Sep 17 00:00:00 2001 From: Tong Sun Date: Sat, 27 Nov 2021 12:08:22 -0500 Subject: [PATCH] - [!] fix cascadia_test.go after API changed --- cascadia_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cascadia_test.go b/cascadia_test.go index 7360e61..40c9c66 100644 --- a/cascadia_test.go +++ b/cascadia_test.go @@ -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