Skip to content

Commit

Permalink
validation: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed May 23, 2017
1 parent 490ad6b commit ee5e1c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tests/testdata/test.schema
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ enum FurColor {
BLACK
TAN
SPOTTED
NO_FUR
UNKNOWN
}

type Human implements Being, Intelligent {
Expand Down
12 changes: 12 additions & 0 deletions internal/tests/testdata/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@
"query": "\n {\n dog {\n doesKnowCommand(dogCommand: SIT)\n }\n }\n ",
"errors": []
},
{
"name": "Validate: Argument values of correct type/Valid values/Enum with undefined value",
"rule": "ArgumentsOfCorrectType",
"query": "\n {\n complicatedArgs {\n enumArgField(enumArg: UNKNOWN)\n }\n }\n ",
"errors": []
},
{
"name": "Validate: Argument values of correct type/Valid values/Enum with null value",
"rule": "ArgumentsOfCorrectType",
"query": "\n {\n complicatedArgs {\n enumArgField(enumArg: NO_FUR)\n }\n }\n ",
"errors": []
},
{
"name": "Validate: Argument values of correct type/Valid values/null into nullable type",
"rule": "ArgumentsOfCorrectType",
Expand Down

0 comments on commit ee5e1c3

Please sign in to comment.