fixing DocSpec tests to make them compile

This commit is contained in:
akhesaCaro 2021-03-05 08:16:35 +01:00
parent a74d9d911e
commit dd1ab6dd36
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View file

@ -30,6 +30,7 @@ doc/_build
doc/venv doc/venv
doc/tutorial/static/api.js doc/tutorial/static/api.js
doc/tutorial/static/jq.js doc/tutorial/static/jq.js
shell.nix
# nix # nix
result* result*

View file

@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
it "mentions headers" $ do it "mentions headers" $ do
md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header." md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
it "contains response samples" $ it "contains response samples - dt1field1" $
md `shouldContain` "{\"dt1field1\":\"field 1\",\"dt1field2\":13}" md `shouldContain` "\"dt1field1\":\"field 1\""
it "contains response samples - dt1field2" $
md `shouldContain` "\"dt1field2\":13"
it "contains request body samples" $ it "contains request body samples" $
md `shouldContain` "17" md `shouldContain` "17"