Skip to content

Commit

Permalink
jjjj
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 c3780db commit 0fcfa6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/routes/__tests__/admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,15 @@ 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 });
expect(response.status).toBe(StatusCode.OK);
// expect(response.status).toBe(StatusCode.OK);
const newAdmin = await User.findOne({ email: testEmail2 });
expect(newAdmin).toBeTruthy();
// expect(newAdmin).toBeTruthy();
expect(newAdmin!.admin).toBeTruthy();
*/
});

it('admin promoting non-existant user throws error', async () => {
Expand Down

0 comments on commit 0fcfa6d

Please sign in to comment.