Parse interface type definition

This commit is contained in:
2020-01-11 08:32:25 +01:00
parent f4ed06741d
commit adffa185bb
4 changed files with 21 additions and 4 deletions

View File

@ -74,3 +74,10 @@ spec = describe "Parser" $ do
parse document "" `shouldSucceedOn` [r|
union SearchResult = Photo | Person
|]
it "parses minimal interface type definition" $
parse document "" `shouldSucceedOn` [r|
interface NamedEntity {
name: String
}
|]