1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(tests): update postman collection

This commit is contained in:
Awilum
2021-09-23 11:01:18 +03:00
parent 336004e41b
commit 54eae4e017

View File

@@ -185,10 +185,18 @@
"script": {
"type": "text/javascript",
"exec": [
"",
"",
"pm.test(\"Status code is 200\", function () {",
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response json data should not have errors\", function () {",
" pm.response.to.have.jsonBody();",
" pm.response.to.not.have.jsonBody('error');",
"});",
"",
"pm.test(\"response json data should contain correct value for registry item key\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.value).to.eql('Flextype');",
"});"
]
}