summaryrefslogtreecommitdiff
path: root/tests/Test/FragmentSpec.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2020-09-11 08:03:49 +0200
committerEugen Wissner <belka@caraus.de>2020-09-11 08:03:49 +0200
commit08998dbd935e65aab10ff53c249cb214af2522f2 (patch)
treef5b502ce73ede2500dd0a508145b317e5f81b7fe /tests/Test/FragmentSpec.hs
parentc2c57b636392ae67a118ce5be04ad8f4b1304ed5 (diff)
downloadgraphql-08998dbd935e65aab10ff53c249cb214af2522f2.tar.gz
Validate fragments don't form cycles
Diffstat (limited to 'tests/Test/FragmentSpec.hs')
-rw-r--r--tests/Test/FragmentSpec.hs15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/Test/FragmentSpec.hs b/tests/Test/FragmentSpec.hs
index 216ae21..27b08a2 100644
--- a/tests/Test/FragmentSpec.hs
+++ b/tests/Test/FragmentSpec.hs
@@ -178,21 +178,6 @@ spec = do
]
in actual `shouldResolveTo` expected
- it "rejects recursive fragments" $ do
- let expected = HashMap.singleton "data" $ Aeson.object []
- sourceQuery = [r|
- {
- ...circumferenceFragment
- }
-
- fragment circumferenceFragment on Hat {
- ...circumferenceFragment
- }
- |]
-
- actual <- graphql (toSchema "circumference" circumference) sourceQuery
- actual `shouldResolveTo` expected
-
it "considers type condition" $ do
let sourceQuery = [r|
{