summaryrefslogtreecommitdiff
path: root/tests/Language/GraphQL/ExecuteSpec.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2021-09-02 08:45:23 +0200
committerEugen Wissner <belka@caraus.de>2021-09-02 08:45:23 +0200
commit7b4c7e2b8c3e10fa416b56b913dcc8a0ba8915c1 (patch)
treed0ea39d066d4561bdaeb202b1d294a67412a6f6f /tests/Language/GraphQL/ExecuteSpec.hs
parent233a58094da9f5e02b4000dbef2c183d65a8017d (diff)
downloadgraphql-7b4c7e2b8c3e10fa416b56b913dcc8a0ba8915c1.tar.gz
Handle argument locations
Diffstat (limited to 'tests/Language/GraphQL/ExecuteSpec.hs')
-rw-r--r--tests/Language/GraphQL/ExecuteSpec.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Language/GraphQL/ExecuteSpec.hs b/tests/Language/GraphQL/ExecuteSpec.hs
index fd10787..daa816d 100644
--- a/tests/Language/GraphQL/ExecuteSpec.hs
+++ b/tests/Language/GraphQL/ExecuteSpec.hs
@@ -285,9 +285,10 @@ spec =
[ "philosopher" .= Aeson.Null
]
executionErrors = pure $ Error
- { message = "Argument coercing failed."
+ { message =
+ "Argument \"id\" has invalid type. Expected type ID, found: True."
, locations = [Location 1 15]
- , path = []
+ , path = [Segment "philosopher"]
}
expected = Response data'' executionErrors
Right (Right actual) = either (pure . parseError) execute'