Skip to content

Commit b7c6255

Browse files
committed
fix: Header.has check works properly
1 parent 9cf9d01 commit b7c6255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tooling/test/sugar.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ func (h HeaderBuilder) Equals(value string, args ...any) HeaderBuilder {
436436
}
437437

438438
func (h HeaderBuilder) Has(values ...string) HeaderBuilder {
439-
h.Check_ = check.Has(values...)
439+
for _, value := range values {
440+
h.Check_ = check.IsUniqAnd(check.Contains(value))
441+
}
440442
return h
441443
}
442444

0 commit comments

Comments
 (0)