graphql-spice-1.0.2.0: GraphQL with batteries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.GraphQL

Description

Test helpers.

Synopsis

Documentation

shouldResolve :: (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 :: (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.