From c75672f0377d4728d767f0546c20193440c6310b Mon Sep 17 00:00:00 2001 From: Philip Papurt Date: Sun, 9 Aug 2020 15:18:05 -0400 Subject: [PATCH] test: remove labels on afterAll calls --- server/test/integration/auth.js | 2 +- server/test/integration/challenges.js | 2 +- server/test/integration/profile.js | 2 +- server/test/integration/submit.js | 2 +- server/test/integration/submitTiming.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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() })