aboutsummaryrefslogtreecommitdiff
path: root/tests/Test/DirectiveSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Test/DirectiveSpec.hs')
-rw-r--r--tests/Test/DirectiveSpec.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/Test/DirectiveSpec.hs b/tests/Test/DirectiveSpec.hs
index e6b6cea..2d586f6 100644
--- a/tests/Test/DirectiveSpec.hs
+++ b/tests/Test/DirectiveSpec.hs
@@ -19,8 +19,7 @@ import Test.Hspec.GraphQL
import Text.RawString.QQ (r)
experimentalResolver :: Schema IO
-experimentalResolver = Schema
- { query = queryType, mutation = Nothing, subscription = Nothing }
+experimentalResolver = schema queryType Nothing Nothing mempty
where
queryType = Out.ObjectType "Query" Nothing []
$ HashMap.singleton "experimentalField"
@@ -72,7 +71,7 @@ spec =
...experimentalFragment @skip(if: true)
}
- fragment experimentalFragment on ExperimentalType {
+ fragment experimentalFragment on Query {
experimentalField
}
|]
@@ -83,7 +82,7 @@ spec =
it "should be able to @skip an inline fragment" $ do
let sourceQuery = [r|
{
- ... on ExperimentalType @skip(if: true) {
+ ... on Query @skip(if: true) {
experimentalField
}
}