Add a test for empty field argument list
All checks were successful
Build / audit (push) Successful in 17s
Build / test (push) Successful in 6m5s
Build / doc (push) Successful in 5m10s

... within parens.
This commit is contained in:
Eugen Wissner 2024-09-17 18:24:41 +02:00
parent 01b30a71da
commit 1834e5c41e

View File

@ -75,7 +75,10 @@ spec = describe "Parser" $ do
mutation auth{
test(username: """username""", password: """password""")
}|]
it "fails to parse an empty argument list in parens" $
parse document "" `shouldFailOn` "{ test() }"
it "accepts any arguments" $ mapSize (const 10) $ property $ \xs ->
let
query' :: Text