Fix strings not consuming spaces

Fixes #28
This commit is contained in:
Sam Nolan
2019-11-27 19:18:20 +11:00
parent 3497784984
commit def52ddc20
3 changed files with 20 additions and 2 deletions

View File

@ -30,3 +30,15 @@ spec = describe "Parser" $ do
mutation auth($username: String!, $password: String!){
test
}|]
it "accepts two string arguments" $
parse document "" `shouldSucceedOn` [r|
mutation auth{
test(username: "username", password: "password")
}|]
it "accepts two block string arguments" $
parse document "" `shouldSucceedOn` [r|
mutation auth{
test(username: """username""", password: """password""")
}|]