diff options
Diffstat (limited to 'tests/Language/GraphQL/AST/EncoderSpec.hs')
| -rw-r--r-- | tests/Language/GraphQL/AST/EncoderSpec.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Language/GraphQL/AST/EncoderSpec.hs b/tests/Language/GraphQL/AST/EncoderSpec.hs index 9326fd1..b21e68f 100644 --- a/tests/Language/GraphQL/AST/EncoderSpec.hs +++ b/tests/Language/GraphQL/AST/EncoderSpec.hs @@ -121,11 +121,11 @@ spec = do describe "definition" $ it "indents block strings in arguments" $ - let arguments = [Argument "message" (String "line1\nline2")] - field = Field Nothing "field" arguments [] [] $ Location 0 0 + let location = Location 0 0 + arguments = [Argument "message" (String "line1\nline2") location] + field = Field Nothing "field" arguments [] [] location operation = DefinitionOperation - $ SelectionSet (pure $ FieldSelection field) - $ Location 0 0 + $ SelectionSet (pure $ FieldSelection field) location in definition pretty operation `shouldBe` [r|{ field(message: """ line1 |
