From 7b4c7e2b8c3e10fa416b56b913dcc8a0ba8915c1 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 2 Sep 2021 08:45:23 +0200 Subject: Handle argument locations --- tests/Language/GraphQL/ExecuteSpec.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/Language/GraphQL/ExecuteSpec.hs') 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' -- cgit v1.2.3