Skip to content

Commit

Permalink
add not exist check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomokazu Tantaka committed Dec 25, 2024
1 parent 40bf833 commit c310690
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/e2e/gql_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ func TestSearchUser(t *testing.T) {
request = GraphQLRequest{
Query: query,
}
Request(e, uId1.String(), request).Object().
Value("data").Object().Value("searchUser").Null()
resp := Request(e, uId1.String(), request).Object()
resp.Value("data").Object().Value("searchUser").Null()

resp.NotContainsKey("errors") // not exist
}

func TestNode(t *testing.T) {
Expand Down

0 comments on commit c310690

Please sign in to comment.