From 377c87045e468b9a34e7bee40129fcd03e519968 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 7 Jun 2020 06:16:45 +0200 Subject: Add description to the enum type values --- tests/Language/GraphQL/Execute/CoerceSpec.hs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/Language/GraphQL/Execute/CoerceSpec.hs') diff --git a/tests/Language/GraphQL/Execute/CoerceSpec.hs b/tests/Language/GraphQL/Execute/CoerceSpec.hs index 15180fb..d800230 100644 --- a/tests/Language/GraphQL/Execute/CoerceSpec.hs +++ b/tests/Language/GraphQL/Execute/CoerceSpec.hs @@ -9,7 +9,6 @@ import qualified Data.Aeson.Types as Aeson import qualified Data.HashMap.Strict as HashMap import Data.Maybe (isNothing) import Data.Scientific (scientific) -import qualified Data.Set as Set import Language.GraphQL.Execute.Coerce import Language.GraphQL.Type.Definition import qualified Language.GraphQL.Type.In as In @@ -17,8 +16,12 @@ import Prelude hiding (id) import Test.Hspec (Spec, describe, it, shouldBe, shouldSatisfy) direction :: EnumType -direction = EnumType "Direction" Nothing - $ Set.fromList ["NORTH", "EAST", "SOUTH", "WEST"] +direction = EnumType "Direction" Nothing $ HashMap.fromList + [ ("NORTH", EnumValue Nothing) + , ("EAST", EnumValue Nothing) + , ("SOUTH", EnumValue Nothing) + , ("WEST", EnumValue Nothing) + ] singletonInputObject :: In.Type singletonInputObject = In.NamedInputObjectType type' -- cgit v1.2.3