Skip to content

Commit dd1ab6d

Browse files
committed
fixing DocSpec tests to make them compile
1 parent a74d9d9 commit dd1ab6d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ doc/_build
3030
doc/venv
3131
doc/tutorial/static/api.js
3232
doc/tutorial/static/jq.js
33+
shell.nix
3334

3435
# nix
3536
result*

servant-docs/test/Servant/DocsSpec.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
126126
it "mentions headers" $ do
127127
md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
128128

129-
it "contains response samples" $
130-
md `shouldContain` "{\"dt1field1\":\"field 1\",\"dt1field2\":13}"
129+
it "contains response samples - dt1field1" $
130+
md `shouldContain` "\"dt1field1\":\"field 1\""
131+
it "contains response samples - dt1field2" $
132+
md `shouldContain` "\"dt1field2\":13"
133+
131134
it "contains request body samples" $
132135
md `shouldContain` "17"
133136

0 commit comments

Comments
 (0)