Add test that EmptyAPI does not generate any docs
This commit is contained in:
parent
2c6aca0fc6
commit
4b7ffc9461
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,9 @@ spec = describe "Servant.Docs" $ do
|
|||
it "contains request body samples" $
|
||||
md `shouldContain` "17"
|
||||
|
||||
it "does not generate any docs mentioning the 'empty-api' path" $
|
||||
md `shouldNotContain` "empty-api"
|
||||
|
||||
|
||||
-- * APIs
|
||||
|
||||
|
@ -128,6 +131,7 @@ instance MimeRender PlainText Int where
|
|||
type TestApi1 = Get '[JSON, PlainText] (Headers '[Header "Location" String] Int)
|
||||
:<|> ReqBody '[JSON] String :> Post '[JSON] Datatype1
|
||||
:<|> Header "X-Test" Int :> Put '[JSON] Int
|
||||
:<|> "empty-api" :> EmptyAPI
|
||||
|
||||
data TT = TT1 | TT2 deriving (Show, Eq)
|
||||
data UT = UT1 | UT2 deriving (Show, Eq)
|
||||
|
|
Loading…
Reference in a new issue