Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Apr 22, 2022
1 parent b1d10f7 commit d2575fd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions script/ci/Tarkov.dev.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,38 @@
" pm.expect(pm.response.text()).to.not.include(\"errors\");\r",
"});\r",
"\r",
"pm.test(\"correct id type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].id).to.be.a(\"string\");\r",
"});\r",
"\r",
"pm.test(\"correct id type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].id).to.be.a(\"string\");\r",
"});\r",
"\r",
"pm.test(\"correct giver type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].giver.name).to.be.a(\"string\");\r",
"});\r",
"\r",
"pm.test(\"correct turnin type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].turnin.name).to.be.a(\"string\");\r",
"});\r",
"\r",
"pm.test(\"correct title type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].title).to.be.a(\"string\");\r",
"});\r",
"\r",
"pm.test(\"correct wikiLink match\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].wikiLink).to.include(\"https://\");;\r",
"});\r",
"\r",
"pm.test(\"correct exp type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].exp).to.be.a(\"number\");\r",
"});\r",
"\r",
"pm.test(\"correct unlocks type\", function () {\r",
" pm.expect(pm.response.json().data.quests[0].unlocks).to.be.a(\"array\");\r",
"});\r",
"\r",
""
],
"type": "text/javascript"
Expand Down

0 comments on commit d2575fd

Please sign in to comment.