Skip to content

Commit

Permalink
bro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Raup authored and Ricky Raup committed Apr 17, 2024
1 parent 15a365c commit c8812c0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server/src/routes/__tests__/admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down

0 comments on commit c8812c0

Please sign in to comment.