Skip to content

Commit e8d8fc0

Browse files
committed
Update Postman files
1 parent 40e00e0 commit e8d8fc0

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

JSON Placeholder Env.postman_environment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
}
2525
],
2626
"_postman_variable_scope": "environment",
27-
"_postman_exported_at": "2021-06-12T10:21:04.923Z",
27+
"_postman_exported_at": "2021-06-13T16:10:00.249Z",
2828
"_postman_exported_using": "Postman/8.6.1"
2929
}

JSON Placeholder.postman_collection.json

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -882,36 +882,7 @@
882882
"",
883883
"pm.test(\"Response body is correct\", function() {",
884884
" pm.expect(jsonData).to.eql(expectedResponse);",
885-
"});",
886-
"",
887-
"// // If the response body doesn't match the expected response for whatever reason the above test doesn't really help diagnose where the actual and expected responses differ. Therefore, if they do differ, run a set of tests that will show where the differences are",
888-
"// if(JSON.stringify(jsonData) != JSON.stringify(expectedResponse)) {",
889-
"// for (var i = 0; i < jsonData.length; i++) {",
890-
"// pm.test(\"Post \" + (i+1) + \" is correct\", function() {",
891-
"// pm.expect(jsonData[i]).to.eql(expectedResponse[i]);",
892-
"// });",
893-
"",
894-
"// if (JSON.stringify(jsonData[i]) != JSON.stringify(expectedResponse[i])) {",
895-
"// pm.test(\"Post \" + (i+1) + \" - User ID is correct\", function() {",
896-
"// pm.expect(jsonData[i].userId).to.eql(expectedResponse[i].userId);",
897-
"// });",
898-
"",
899-
"// pm.test(\"Post \" + (i+1) + \" - ID is correct\", function() {",
900-
"// pm.expect(jsonData[i].id).to.eql(expectedResponse[i].id);",
901-
"// });",
902-
"",
903-
"// pm.test(\"Post \" + (i+1) + \" - Title is correct\", function() {",
904-
"// pm.expect(jsonData[i].title).to.eql(expectedResponse[i].title);",
905-
"// });",
906-
"",
907-
"// pm.test(\"Post \" + (i+1) + \" - Body is correct\", function() {",
908-
"// pm.expect(jsonData[i].body).to.eql(expectedResponse[i].body);",
909-
"// });",
910-
"// }",
911-
"// };",
912-
"// };",
913-
"",
914-
"// pm.environment.unset(\"expectedResponse\");"
885+
"});"
915886
]
916887
}
917888
}
@@ -971,9 +942,7 @@
971942
"script": {
972943
"type": "text/javascript",
973944
"exec": [
974-
"var expectedResponse = {};",
975-
"",
976-
"pm.environment.set(\"expectedResponse\", expectedResponse);"
945+
""
977946
]
978947
}
979948
},
@@ -983,10 +952,9 @@
983952
"type": "text/javascript",
984953
"exec": [
985954
"var jsonData = pm.response.json();",
986-
"var expectedResponse = pm.environment.get(\"expectedResponse\");",
987955
"",
988956
"pm.test(\"Response body is correct\", function() {",
989-
" pm.expect(jsonData).to.eql(expectedResponse);",
957+
" pm.expect(jsonData).to.eql({});",
990958
"});"
991959
]
992960
}

0 commit comments

Comments
 (0)