Skip to content

Commit

Permalink
fix: query should set exist to false if nil return (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF authored May 23, 2023
1 parent e095179 commit 7cb6572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestQuery(t *testing.T) {
mock := mockOperativeType(actual)
o := mock.Query("not_exist")
err := o.HasValue("nil").AsError()
assert.NoError(t, err)
assert.ErrorContains(t, err, "not found when expected")
assert.False(t, o.Exist)
})

Expand Down

0 comments on commit 7cb6572

Please sign in to comment.