graphql-spice-1.0.6.0: GraphQL with batteries
Safe HaskellNone
LanguageHaskell2010

Test.Hspec.GraphQL

Description

Test helpers.

Synopsis

Documentation

shouldResolve :: forall (m :: Type -> Type) b. (MonadCatch m, Serialize b) => (Text -> IO (Either (ResponseEventStream m b) (Response b))) -> Text -> Expectation Source #

Asserts that the response doesn't contain any errors.

shouldResolveTo :: forall (m :: Type -> Type) b. (MonadCatch m, Serialize b, Eq b, Show b) => Either (ResponseEventStream m b) (Response b) -> b -> Expectation Source #

Asserts that a query resolves to some value.