Skip to content

Commit d993a25

Browse files
committed
fixed bug in block testsd
1 parent 3d7cf09 commit d993a25

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

PyMatchaV2.postman_collection.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,15 +4725,11 @@
47254725
"var response = JSON.parse(responseBody);",
47264726
"",
47274727
"",
4728-
"pm.test(\"Status code is 400\", function () {",
4729-
" pm.response.to.have.status(400);",
4728+
"pm.test(\"Status code is 200\", function () {",
4729+
" pm.response.to.have.status(200);",
47304730
"});",
47314731
"",
4732-
"tests[\"JSON return code is 400\"] = response.code == 400",
4733-
"",
4734-
"tests[\"success is true\"] = response.success == false",
4735-
"tests[\"Message is correct\"] = response.error.message == \"You already blocked this user.\"",
4736-
"tests[\"Error type is Bad Request\"] = response.error.type == \"BadRequestError\""
4732+
"tests[\"Success is true\"] = response.success == true"
47374733
],
47384734
"type": "text/javascript"
47394735
}

0 commit comments

Comments
 (0)