Skip to content

Commit

Permalink
fixed errors in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grong0 committed Apr 7, 2024
1 parent 5682728 commit 6d20b3b
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions postman/WebsiteTheSSEquelTests.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@
"pm.test(\"Response for GET /api/user/[id]\", function () {\r",
" var jsonData = pm.response.json();\r",
" pm.expect(jsonData).to.eql({\r",
" \"name\": \"Johnnathaniel\",\r",
" \"name\": \"Johnathaniel\",\r",
" \"email\": \"johndoe@rit.edu\"\r",
" });\r",
"});"
Expand Down Expand Up @@ -2097,7 +2097,7 @@
" pm.expect(jsonData).to.eql({\r",
" \"id\": 1,\r",
" \"mentorId\": 1,\r",
" \"hourBlockId\": 1\r",
" \"hourBlockId\": 2\r",
" });\r",
"});"
],
Expand Down Expand Up @@ -2207,7 +2207,32 @@
" delete value.createdAt;\r",
" delete value.updatedAt;\r",
" }\r",
" pm.expect(jsonData).to.eql([{ \"id\": 1, \"golink\": \"sse\", \"url\": \"sse.rit.edu\", \"description\": \"SSE Website\", \"isPublic\": true, \"isPinned\": true }, { \"id\": 2, \"golink\": \"google\", \"url\": \"google.com\", \"description\": \"An underground and unknown search engine\", \"isPublic\": true, \"isPinned\": true }, { \"id\": 3, \"golink\": \"youtube\", \"url\": \"youtube.com\", \"description\": \"A small video sharing website\", \"isPublic\": true, \"isPinned\": true }]);\r",
" pm.expect(jsonData).to.eql([\r",
" {\r",
" \"id\": 2,\r",
" \"golink\": \"google\",\r",
" \"url\": \"google.com\",\r",
" \"description\": \"An underground and unknown search engine\",\r",
" \"isPublic\": true,\r",
" \"isPinned\": true\r",
" },\r",
" {\r",
" \"id\": 3,\r",
" \"golink\": \"youtube\",\r",
" \"url\": \"youtube.com\",\r",
" \"description\": \"A small video sharing website\",\r",
" \"isPublic\": true,\r",
" \"isPinned\": true\r",
" },\r",
" {\r",
" \"id\": 1,\r",
" \"golink\": \"Duck Duck Go\",\r",
" \"url\": \"https://duckduckgo.com\",\r",
" \"description\": \"SSE Website\",\r",
" \"isPublic\": true,\r",
" \"isPinned\": true\r",
" }\r",
" ]);\r",
"});"
],
"type": "text/javascript"
Expand Down

0 comments on commit 6d20b3b

Please sign in to comment.