Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Hspec.GraphQL
Description
Test helpers.
Synopsis
- shouldResolve :: forall (m :: Type -> Type) b. (MonadCatch m, Serialize b) => (Text -> IO (Either (ResponseEventStream m b) (Response b))) -> Text -> Expectation
- shouldResolveTo :: forall (m :: Type -> Type) b. (MonadCatch m, Serialize b, Eq b, Show b) => Either (ResponseEventStream m b) (Response b) -> b -> Expectation
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.