mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-06 04:34:11 -07:00
test(modules): fix favicon_test checkMatchers arity after matchers-condition (#228)
#189 added the condition param to checkMatchers; the favicon matcher test (#183) still called the 3-arg form, breaking the build once both landed. pass "" (default and-condition) to restore single-matcher semantics.
This commit is contained in:
@@ -142,7 +142,7 @@ func TestCheckMatcherFaviconNegative(t *testing.T) {
|
||||
signed := int64(fingerprint.FaviconHash(faviconFixture))
|
||||
matchers := []Matcher{{Type: "favicon", Hash: []int64{signed}, Negative: true}}
|
||||
resp := fakeResponse(t, 200, nil)
|
||||
if checkMatchers(matchers, resp, string(faviconFixture)) {
|
||||
if checkMatchers(matchers, "", resp, string(faviconFixture)) {
|
||||
t.Error("negative favicon matcher should not match its own hash")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user