on master help sign in
fixing DocSpec tests to make them compile
dd1ab6dakhesaCaro
.gitignore+1
@@ -30,6 +30,7 @@ doc/_build
30doc/venv
30doc/venv
31doc/tutorial/static/api.js
31doc/tutorial/static/api.js
32doc/tutorial/static/jq.js
32doc/tutorial/static/jq.js
33+shell.nix
33
34
34# nix
35# nix
35result*
36result*
servant-docs/test/Servant/DocsSpec.hs+5−2
@@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
126 it "mentions headers" $ do
126 it "mentions headers" $ do
127 md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
127 md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
128
128
129− it "contains response samples" $
129+ it "contains response samples - dt1field1" $
130− md `shouldContain` "{\"dt1field1\":\"field 1\",\"dt1field2\":13}"
130+ md `shouldContain` "\"dt1field1\":\"field 1\""
131+ it "contains response samples - dt1field2" $
132+ md `shouldContain` "\"dt1field2\":13"
133+
131 it "contains request body samples" $
134 it "contains request body samples" $
132 md `shouldContain` "17"
135 md `shouldContain` "17"
133
136