updated readme with blog and youtube link #33
Merged
GitHub Actions / Test Report
succeeded
Sep 12, 2024 in 0s
36 passed, 0 failed and 0 skipped
✅ /home/runner/work/restful-ecommerce/restful-ecommerce/reports/test-results.json
36 tests were completed in 134ms with 36 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/unit-tests.spec.js | 36✅ | 124ms |
✅ test/unit-tests.spec.js
Unit Tests of E-Commerce application
✅ should create orders and return status code 201
✅ should delete an order with correct order id and valid token and return status code 204
✅ should filter and fetch order on order id with status code 200
✅ should filter and fetch order on product_id with status code 200
✅ should filter and fetch order on user_id with status code 200
✅ should generate swagger.json in the local dir successfully when /swagger.json endpoint is called
✅ should generate the valid token with status code 201
✅ should get all available orders successfully with status code 200
✅ should not delete an order and return status code 400 when authorization token is in invalid format
✅ should not delete an order and return status code 403 when authorization token is missing in the header
✅ should not delete an order and return status code 404 when no order is found for the order id
✅ should not generate the token and return status code 400 when only password is provided and username is missing
✅ should not generate the token and return status code 401 when both username and password is blank
✅ should not generate the token and return status code 401 when invalid credentials are supplied
✅ should not generate the token and return status code 401 when only username is provided and password is missing
✅ should not generate the token and return status code 401 when password is blank
✅ should not generate the token and return status code 401 when username is blank
✅ should not update the order when a field is missing from request body and return status code 400
✅ should not update the order when authorization token is invalid and return status code 400
✅ should not update the order when authorization token is missing in the update request and return status code 403
✅ should not update the partial order when authorization token is invalid and return status code 400
✅ should not update the partial order when authorization token is missing in the update request and return status code 403
✅ should not update the partial order when no data is provided in the request body, and return status code 400
✅ should perform health check of the server
✅ should return 404 status code when query no records are found for the order id filter
✅ should return 404 status code when query no records are found for the product id filter
✅ should return 404 status code when query no records are found for the user id filter
✅ should return 404 when order with the given id is not found for partial update
✅ should return 404 when order with the given id is not found for update
✅ should return status code 400 for invalid order format
✅ should return status code 400 with message for fields missing in order
✅ should return status code 404 and not return any order when multiple filter query params dont match
✅ should return status code 404 as no order exists
✅ should return the order with multiple filter queries with status code 200
✅ should update the order partially and return status code 200
✅ should update the order successfully and return status code 200
Loading