Skip to content

Commit

Permalink
[cleanup] feat: Delete user cleanup api
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave committed May 18, 2024
1 parent 0e2cab2 commit 63eefc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/tests/service/users.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const email = faker.internet.email();
const password = faker.internet.password();

let token: string;
let createdID: string;

describe('Unauthenticated Flows', () => {
test('Should not be able to get the list of Users', async () => {
Expand Down Expand Up @@ -66,12 +65,11 @@ describe('Authenticated Flows', () => {
});
expect(response.status).toBe(200);
expect(response.body.id).toBeDefined();
createdID = response.body.id;
});

test('Delete a User', async () => {
const response = await request(USERS_URL)
.delete('/')
.delete('q/')
.set('Authorization', `Bearer ${token}`);
expect(response.status).toBe(204);
});
Expand Down

0 comments on commit 63eefc1

Please sign in to comment.