[ ] 1) categories endpoints
GET /api/categories/:category_id/products
given there are products for the specified category
"before each" hook for "it responds with 200 and all the products for the specified category":
ReferenceError: productInsert is not defined
at Context. (test/categories-endpoints.spec.js:91:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ ] 2) categories endpoints
GET /api/categories/:category_id/products
given a malicious product
removes the attack content:
AssertionError: expected [ { productObject: { …(19) }, …(5) } ] to deeply equal undefined
at Context. (test/categories-endpoints.spec.js:135:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at /Users/Georgia/software_engineering_projects/veronaut-products-api/test/categories-endpoints.spec.js:136:45
at /Users/Georgia/software_engineering_projects/veronaut-products-api/node_modules/supertest/lib/test.js:308:13
at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
at Test.assert (node_modules/supertest/lib/test.js:164:23)
at Server.localAssert (node_modules/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:633:28)
at Server.emit (node:events:519:28)
at emitCloseNT (node:net:2279:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
[ ] 1) categories endpoints GET /api/categories/:category_id/products given there are products for the specified category "before each" hook for "it responds with 200 and all the products for the specified category": ReferenceError: productInsert is not defined at Context. (test/categories-endpoints.spec.js:91:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ ] 2) categories endpoints GET /api/categories/:category_id/products given a malicious product removes the attack content: AssertionError: expected [ { productObject: { …(19) }, …(5) } ] to deeply equal undefined at Context. (test/categories-endpoints.spec.js:135:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at /Users/Georgia/software_engineering_projects/veronaut-products-api/test/categories-endpoints.spec.js:136:45 at /Users/Georgia/software_engineering_projects/veronaut-products-api/node_modules/supertest/lib/test.js:308:13 at Test._assertFunction (node_modules/supertest/lib/test.js:285:13) at Test.assert (node_modules/supertest/lib/test.js:164:23) at Server.localAssert (node_modules/supertest/lib/test.js:120:14) at Object.onceWrapper (node:events:633:28) at Server.emit (node:events:519:28) at emitCloseNT (node:net:2279:8) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)