Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions postman/collections/Octodex REST API.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@
"",
"pm.visualizer.set(template, constructVisualizerPayload());",
"",
"pm.test(\"At least 100 octocats (excluding the 'Original' octocat) are returned within less than a second\", function () {",
"pm.test(\"At least 100 octocats are returned within less than a second\", function () {",
" var responseData = pm.response.json();",
" var octocats = responseData.data.filter(function(item) {",
" return item.octocat !== \"\" && item.title !== \"Original\";",
" return item.octocat !== \"\";",
" });",
"",
" pm.expect(octocats.length).to.be.greaterThan(100, \"At least 100 octocats (excluding the 'Original' octocat) should be returned\");",
"",
" pm.expect(pm.response.responseTime).to.be.below(1000, \"Response time should be less than a second\");",
"});",
"",
"pm.test(\"Each octocat (excluding the 'Original' octocat) has at least one author\", function() {",
"pm.test(\"Each octocat has at least one author\", function() {",
" var responseData = pm.response.json();",
" var octocats = responseData.data.filter(function(item) {",
" return item.title !== \"Original\";",
" return item.title !== \"\";",
" });",
"",
" octocats.forEach(function(octocat) {",
Expand Down