Skip to content

Commit

Permalink
Made a change to check Test Status.
Browse files Browse the repository at this point in the history
  • Loading branch information
alwinsimon committed Oct 28, 2023
1 parent 8d32333 commit 7bb6322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orders/src/routes/__test__/delete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const mockOrderId = new mongoose.Types.ObjectId().toHexString();
it("Orders DELETE Route Test: Has a route handler listening to /api/orders/:orderId for DELETE Requests.", async () => {
// Make a request to the route and make sure that we are not getting a 404 which indicates the absence of the route
const response = await request(app).delete(`/api/orders/${mockOrderId}`);
expect(response.status).not.toEqual(404);
expect(response.status).not.toEqual(400);
});

it("Orders DELETE Route Test: /api/orders/:orderId can only be accessed only if the user is Signed-In.", async () => {
Expand Down

0 comments on commit 7bb6322

Please sign in to comment.