summaryrefslogtreecommitdiff
path: root/tests/Language/GraphQL/AST
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-12-28 07:07:58 +0100
committerEugen Wissner <belka@caraus.de>2019-12-28 07:07:58 +0100
commitfdf5914626ad172a8a459696f0114ef990c0d5cb (patch)
treed336c133d8ea7929a99b5e2e5bfedaa84d7dd6b2 /tests/Language/GraphQL/AST
parent78ee76f9d5bd59e6fe97dfb39ca690a473b256b1 (diff)
downloadgraphql-fdf5914626ad172a8a459696f0114ef990c0d5cb.tar.gz
Move AST to AST.Document
Diffstat (limited to 'tests/Language/GraphQL/AST')
-rw-r--r--tests/Language/GraphQL/AST/EncoderSpec.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Language/GraphQL/AST/EncoderSpec.hs b/tests/Language/GraphQL/AST/EncoderSpec.hs
index 619d7e3..00a875c 100644
--- a/tests/Language/GraphQL/AST/EncoderSpec.hs
+++ b/tests/Language/GraphQL/AST/EncoderSpec.hs
@@ -35,8 +35,7 @@ spec = do
it "indents block strings in arguments" $
let arguments = [Argument "message" (String "line1\nline2")]
field = Field Nothing "field" arguments [] []
- set = OperationSelectionSet $ pure field
- operation = DefinitionOperation set
+ operation = DefinitionOperation $ SelectionSet $ pure field
in definition pretty operation `shouldBe` [r|{
field(message: """
line1