Improve tests and speed things up a little.

This commit is contained in:
2023-11-20 11:38:02 +00:00
parent b4c047819f
commit bc305dd8e9
5 changed files with 70 additions and 15 deletions
+14
View File
@@ -243,6 +243,20 @@ func (suite *Tests) Test_parseGraphQLQuery() {
returnCode: 200,
},
},
{
name: "test invalid query",
suppliedQuery: queries{
body: "{\"query\":\"query MyQuery tg_users(where: {handle: {_eq: \\\"tozuo\\\"}}) { id __typename } \"}",
},
wantResults: results{
is_cached: false,
should_block: false,
should_ignore: true,
op_name: "",
op_type: "",
},
},
}
for _, tt := range tests {