From c3106903322c0717db8e3a37608f21dd2b71c957 Mon Sep 17 00:00:00 2001 From: Tomokazu Tantaka Date: Wed, 25 Dec 2024 16:43:15 +0900 Subject: [PATCH] add not exist check --- server/e2e/gql_user_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/e2e/gql_user_test.go b/server/e2e/gql_user_test.go index e3cb33853..bdae45fc8 100644 --- a/server/e2e/gql_user_test.go +++ b/server/e2e/gql_user_test.go @@ -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) {