Skip to content

Commit

Permalink
Assert on variables too
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Apr 24, 2024
1 parent de14216 commit 1eb81d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ type User {
}
assert.Len(t, operation.VariableDefinitions, 1)
assert.NotNil(t, operation.VariableDefinitions.ForName("returnUser"))
assert.Equal(t, map[string]interface{}{
"returnUser": true,
}, input.Variables)
return map[string]interface{}{
"hello": "world",
"user": map[string]interface{}{
Expand Down

0 comments on commit 1eb81d7

Please sign in to comment.