diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-09-01 08:51:20 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-09-01 09:27:12 +0200 |
| commit | 233a58094da9f5e02b4000dbef2c183d65a8017d (patch) | |
| tree | 47288dedf910f0a517bfdf84ec63a6494e672477 /tests | |
| parent | c0d41a56ce81bb8ce385a56a9e36ac8f0f05df23 (diff) | |
| download | graphql-233a58094da9f5e02b4000dbef2c183d65a8017d.tar.gz | |
Adjust value completion tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Language/GraphQL/ExecuteSpec.hs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/Language/GraphQL/ExecuteSpec.hs b/tests/Language/GraphQL/ExecuteSpec.hs index d14eb9d..fd10787 100644 --- a/tests/Language/GraphQL/ExecuteSpec.hs +++ b/tests/Language/GraphQL/ExecuteSpec.hs @@ -235,9 +235,10 @@ spec = ] ] executionErrors = pure $ Error - { message = "Enum value completion failed." + { message = + "Value completion error. Expected type !School, found: EXISTENTIALISM." , locations = [Location 1 17] - , path = [] + , path = [Segment "philosopher", Segment "school"] } expected = Response data'' executionErrors Right (Right actual) = either (pure . parseError) execute' @@ -251,9 +252,10 @@ spec = ] ] executionErrors = pure $ Error - { message = "Union value completion failed." + { message = + "Value completion error. Expected type !Interest, found: { instrument: \"piano\" }." , locations = [Location 1 17] - , path = [] + , path = [Segment "philosopher", Segment "interest"] } expected = Response data'' executionErrors Right (Right actual) = either (pure . parseError) execute' @@ -267,9 +269,11 @@ spec = ] ] executionErrors = pure $ Error - { message = "Interface value completion failed." + { message + = "Value completion error. Expected type !Work, found:\ + \ { title: \"Also sprach Zarathustra: Ein Buch f\252r Alle und Keinen\" }." , locations = [Location 1 17] - , path = [] + , path = [Segment "philosopher", Segment "majorWork"] } expected = Response data'' executionErrors Right (Right actual) = either (pure . parseError) execute' |
