diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-09-17 18:24:41 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-09-17 18:32:45 +0200 |
| commit | 1834e5c41e8eb7bccd391d54db9453ba2ecfa3b6 (patch) | |
| tree | 459cc4bc5b6cb2fc260b3b446e453da54fa140f1 /tests | |
| parent | 01b30a71da8b867269ad78d3091637f197714738 (diff) | |
| download | graphql-1834e5c41e8eb7bccd391d54db9453ba2ecfa3b6.tar.gz | |
Add a test for empty field argument list
... within parens.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Language/GraphQL/AST/ParserSpec.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Language/GraphQL/AST/ParserSpec.hs b/tests/Language/GraphQL/AST/ParserSpec.hs index 80c2663..0e7c28a 100644 --- a/tests/Language/GraphQL/AST/ParserSpec.hs +++ b/tests/Language/GraphQL/AST/ParserSpec.hs @@ -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 |
