fixing DocSpec tests to make them compile
This commit is contained in:
parent
a74d9d911e
commit
dd1ab6dd36
2 changed files with 6 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -30,6 +30,7 @@ doc/_build
|
|||
doc/venv
|
||||
doc/tutorial/static/api.js
|
||||
doc/tutorial/static/jq.js
|
||||
shell.nix
|
||||
|
||||
# nix
|
||||
result*
|
||||
|
|
|
@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
|
|||
it "mentions headers" $ do
|
||||
md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
|
||||
|
||||
it "contains response samples" $
|
||||
md `shouldContain` "{\"dt1field1\":\"field 1\",\"dt1field2\":13}"
|
||||
it "contains response samples - dt1field1" $
|
||||
md `shouldContain` "\"dt1field1\":\"field 1\""
|
||||
it "contains response samples - dt1field2" $
|
||||
md `shouldContain` "\"dt1field2\":13"
|
||||
|
||||
it "contains request body samples" $
|
||||
md `shouldContain` "17"
|
||||
|
||||
|
|
Loading…
Reference in a new issue