Skip to content

Commit

Permalink
test: use bool instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
mul14 committed Oct 17, 2024
1 parent 2c4d2b0 commit 1bb311c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/where_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func TestNotIs(t *testing.T) {
})

t.Run("not is false", func(t *testing.T) {
q := NewQuery(&mockRaidenContext).Model(articleMockModel).NotIs("is_featured", "false")
q := NewQuery(&mockRaidenContext).Model(articleMockModel).NotIs("is_featured", false)

if q.IsList == nil {
t.Error("Expected where clause not to be nil")
Expand Down

0 comments on commit 1bb311c

Please sign in to comment.