Support hspec >= 2.9 in servant-swagger tests

This commit is contained in:
Maxim Koltsov 2022-03-22 22:42:48 +01:00
parent ced5f1a655
commit 256cec566f
No known key found for this signature in database
GPG key ID: 52B5EDB68BF54442
2 changed files with 9 additions and 9 deletions

View file

@ -160,11 +160,11 @@ import Servant.Swagger.Internal.Orphans ()
-- >>> instance Arbitrary UserId where arbitrary = UserId <$> arbitrary
-- >>> hspec $ validateEveryToJSON (Proxy :: Proxy UserAPI)
-- <BLANKLINE>
-- [User]
-- [User]...
-- ...
-- User
-- User...
-- ...
-- UserId
-- UserId...
-- ...
-- Finished in ... seconds
-- 3 examples, 0 failures

View file

@ -53,10 +53,10 @@ import Servant.Swagger.Internal.TypeLevel
--
-- >>> hspec $ context "ToJSON matches ToSchema" $ validateEveryToJSON (Proxy :: Proxy UserAPI)
-- <BLANKLINE>
-- ToJSON matches ToSchema
-- User
-- ToJSON matches ToSchema...
-- User...
-- ...
-- UserId
-- UserId...
-- ...
-- Finished in ... seconds
-- 2 examples, 0 failures
@ -118,11 +118,11 @@ validateEveryToJSONWithPatternChecker checker _ = props
-- :}
-- <BLANKLINE>
-- read . show == id
-- Bool
-- Bool...
-- ...
-- Int
-- Int...
-- ...
-- [Char]
-- [Char]...
-- ...
-- Finished in ... seconds
-- 3 examples, 0 failures