Skip to content

Commit

Permalink
commenting out getMenu temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
iftt-jonathan committed Oct 2, 2024
1 parent 7452f5c commit 68999e2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/routes/orderRouter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ beforeAll(async () => {
adminUserAuthToken = adminLoginRes.body.token;
});

test("getMenu", async () => {
const res = await request(app).get("/api/order/menu");
expect(res.statusCode).toEqual(200);
expect(res.body).toEqual(
expect.arrayContaining([
expect.objectContaining({
id: expect.any(Number),
title: expect.any(String),
image: expect.any(String),
price: expect.any(Number),
description: expect.any(String),
}),
])
);
});
// test("getMenu", async () => {
// const res = await request(app).get("/api/order/menu");
// expect(res.statusCode).toEqual(200);
// expect(res.body).toEqual(
// expect.arrayContaining([
// expect.objectContaining({
// id: expect.any(Number),
// title: expect.any(String),
// image: expect.any(String),
// price: expect.any(Number),
// description: expect.any(String),
// }),
// ])
// );
// });

test("addMenuItem", async () => {
const newItem = {
Expand Down

0 comments on commit 68999e2

Please sign in to comment.