Parse enum and input object type definitions

This commit is contained in:
2020-01-12 07:07:04 +01:00
parent adffa185bb
commit d257d05d4e
4 changed files with 69 additions and 20 deletions

View File

@ -81,3 +81,31 @@ spec = describe "Parser" $ do
name: String
}
|]
it "parses minimal enum type definition" $
parse document "" `shouldSucceedOn` [r|
enum Direction {
NORTH
EAST
SOUTH
WEST
}
|]
it "parses minimal enum type definition" $
parse document "" `shouldSucceedOn` [r|
enum Direction {
NORTH
EAST
SOUTH
WEST
}
|]
it "parses minimal input object type definition" $
parse document "" `shouldSucceedOn` [r|
input Point2D {
x: Float
y: Float
}
|]