diff --git a/server/test/integration/auth.js b/server/test/integration/auth.js index f8bc31a6a..a1498cb57 100644 --- a/server/test/integration/auth.js +++ b/server/test/integration/auth.js @@ -17,7 +17,7 @@ beforeAll(async () => { await app.ready() }) -afterAll('cleanup test user', async () => { +afterAll(async () => { config.email = oldEmail await removeUserByEmail({ email: testUser.email diff --git a/server/test/integration/challenges.js b/server/test/integration/challenges.js index bba246643..86a77ddaa 100644 --- a/server/test/integration/challenges.js +++ b/server/test/integration/challenges.js @@ -17,7 +17,7 @@ beforeAll(async () => { uuid = testUserData.user.id }) -afterAll('cleanup test user', async () => { +afterAll(async () => { await testUserData.cleanup() }) diff --git a/server/test/integration/profile.js b/server/test/integration/profile.js index eee4bd215..5492ad1b7 100644 --- a/server/test/integration/profile.js +++ b/server/test/integration/profile.js @@ -37,7 +37,7 @@ test('succeeds with goodUserData', async () => { expect(resp.body.data.name).toBe(testUser.name) }) -afterAll('cleanup test user', async () => { +afterAll(async () => { await removeUserByEmail({ email: testUser.email }) diff --git a/server/test/integration/submit.js b/server/test/integration/submit.js index 99d97ea33..9b6d5c5d0 100644 --- a/server/test/integration/submit.js +++ b/server/test/integration/submit.js @@ -20,7 +20,7 @@ beforeAll(async () => { uuid = testUserData.user.id }) -afterAll('cleanup test user', async () => { +afterAll(async () => { await db.solves.removeSolvesByUserId({ userid: uuid }) await testUserData.cleanup() }) diff --git a/server/test/integration/submitTiming.js b/server/test/integration/submitTiming.js index e1b7351cf..c46ad7633 100644 --- a/server/test/integration/submitTiming.js +++ b/server/test/integration/submitTiming.js @@ -19,7 +19,7 @@ beforeAll(async () => { uuid = testUserData.user.id }) -afterAll('cleanup test user', async () => { +afterAll(async () => { await testUserData.cleanup() })