summaryrefslogtreecommitdiff
path: root/tests/Language/GraphQL/Type
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Language/GraphQL/Type')
-rw-r--r--tests/Language/GraphQL/Type/OutSpec.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Language/GraphQL/Type/OutSpec.hs b/tests/Language/GraphQL/Type/OutSpec.hs
new file mode 100644
index 0000000..48b7fa4
--- /dev/null
+++ b/tests/Language/GraphQL/Type/OutSpec.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE OverloadedStrings #-}
+module Language.GraphQL.Type.OutSpec
+ ( spec
+ ) where
+
+import Data.Functor.Identity (Identity)
+import qualified Language.GraphQL.Type.Out as Out
+import Test.Hspec (Spec, describe, it, shouldBe)
+
+spec :: Spec
+spec =
+ describe "Value" $
+ it "supports overloaded strings" $
+ let string = "Goldstaub abblasen." :: (Out.Value Identity)
+ in string `shouldBe` Out.String "Goldstaub abblasen."