diff --git a/server/src/routes/__tests__/admin.test.ts b/server/src/routes/__tests__/admin.test.ts index 09cb06a6..69981275 100644 --- a/server/src/routes/__tests__/admin.test.ts +++ b/server/src/routes/__tests__/admin.test.ts @@ -209,16 +209,14 @@ describe('testing admin routes', () => { describe('testing PUT /api/admin/promote', () => { it('admin can promote user', async () => { - // promote user - /* const response = await agent .put('/api/admin/promote') .send({ email: testEmail2 }); + console.log(response); // expect(response.status).toBe(StatusCode.OK); - const newAdmin = await User.findOne({ email: testEmail2 }); + // const newAdmin = await User.findOne({ email: testEmail2 }); // expect(newAdmin).toBeTruthy(); - expect(newAdmin!.admin).toBeTruthy(); - */ + // expect(newAdmin!.admin).toBeTruthy(); // bro });