Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- spec :: Spec
- apiServerSpec :: Spec
- matchJSON :: (IsString s, ToJSON a) => a -> s
- matchValidJSON :: FilePath -> SchemaSelector -> MatchBody
Documentation
apiServerSpec :: Spec Source #
Helpers
matchJSON :: (IsString s, ToJSON a) => a -> s Source #
Create a ResponseMatcher
or MatchBody
from a JSON serializable value
(using their IsString
instances).
matchValidJSON :: FilePath -> SchemaSelector -> MatchBody Source #
Create a MatchBody
that validates the returned JSON response against a
schema. NOTE: This raises impure exceptions, so only use it in this test
suite.