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:
@@ -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');",
|
||||
"});"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user