graphql-1.0.1.0: Haskell GraphQL implementation
Safe HaskellNone
LanguageHaskell2010

Test.Hspec.GraphQL

Description

Test helpers.

Synopsis

Documentation

shouldResolve :: MonadCatch m => (Text -> IO (Either (ResponseEventStream m Value) Object)) -> Text -> Expectation Source #

Asserts that the response doesn't contain any errors.

shouldResolveTo :: MonadCatch m => Either (ResponseEventStream m Value) Object -> Object -> Expectation Source #

Asserts that a query resolves to some value.