summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2020-07-08 08:16:14 +0200
committerEugen Wissner <belka@caraus.de>2020-07-08 08:17:55 +0200
commitc9e265f72c301a543091d58ec10863c66b279fd0 (patch)
treeffe05b502fc20ce163130b7e3d383da19d76af6d /tests
parentb2d473de8dac0f85f11a8f9985d1a9a4dfee03ab (diff)
downloadgraphql-c9e265f72c301a543091d58ec10863c66b279fd0.tar.gz
Return parser error location in a list
An error can have multiple locations which are returned in a listt with key "locations".
Diffstat (limited to 'tests')
-rw-r--r--tests/Language/GraphQL/ErrorSpec.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Language/GraphQL/ErrorSpec.hs b/tests/Language/GraphQL/ErrorSpec.hs
index 179f3b0..482dc3a 100644
--- a/tests/Language/GraphQL/ErrorSpec.hs
+++ b/tests/Language/GraphQL/ErrorSpec.hs
@@ -15,6 +15,6 @@ import Test.Hspec ( Spec
spec :: Spec
spec = describe "singleError" $
it "constructs an error with the given message" $
- let errors'' = Seq.singleton $ Error "Message." 0 0
+ let errors'' = Seq.singleton $ Error "Message." []
expected = Response Aeson.Null errors''
in singleError "Message." `shouldBe` expected