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