From 54eae4e017f71a29ed01d48e614d85174e952a8d Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 23 Sep 2021 11:01:18 +0300 Subject: [PATCH] feat(tests): update postman collection --- tests/postman/collection.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/postman/collection.json b/tests/postman/collection.json index 01bb3dbd..2695da9d 100644 --- a/tests/postman/collection.json +++ b/tests/postman/collection.json @@ -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');", "});" ] }