summaryrefslogtreecommitdiff
path: root/tests/Language/GraphQL/AST/DocumentSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Language/GraphQL/AST/DocumentSpec.hs')
-rw-r--r--tests/Language/GraphQL/AST/DocumentSpec.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Language/GraphQL/AST/DocumentSpec.hs b/tests/Language/GraphQL/AST/DocumentSpec.hs
index ca13e17..d09d6b1 100644
--- a/tests/Language/GraphQL/AST/DocumentSpec.hs
+++ b/tests/Language/GraphQL/AST/DocumentSpec.hs
@@ -18,3 +18,9 @@ spec = do
]
expected = "{ field1: 1.2, field2: null }"
in show object `shouldBe` expected
+
+ describe "Description" $
+ it "keeps content when merging with no description" $
+ let expected = Description $ Just "Left description"
+ actual = expected <> Description Nothing
+ in actual `shouldBe` expected