graphql-0.9.0.0: Haskell GraphQL implementation

Safe HaskellNone
LanguageHaskell2010

Test.Hspec.GraphQL

Description

Test helpers.

Synopsis

Documentation

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

Asserts that the response doesn't contain any errors.

shouldResolveTo :: Either (ResponseEventStream IO Value) Object -> Object -> Expectation Source #

Asserts that a query resolves to some value.