From 3a8c0d23f03e007698d25965888ae4a8a050c05c Mon Sep 17 00:00:00 2001 From: white Date: Sun, 19 May 2024 19:35:46 +0200 Subject: [PATCH] fix: 2 --- api/src/timeslots/timeslots.e2e-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/timeslots/timeslots.e2e-spec.ts b/api/src/timeslots/timeslots.e2e-spec.ts index fd96f40..6b63e08 100644 --- a/api/src/timeslots/timeslots.e2e-spec.ts +++ b/api/src/timeslots/timeslots.e2e-spec.ts @@ -1195,7 +1195,7 @@ describe('TimeslotsController', () => { promises.push(recruitmentSessionService.createRecruitmentSession(rs)), ); - Promise.all(promises).then(() => { + await Promise.all(promises).then(() => { promises = []; mockUsers.forEach(async (u) => promises.push(usersService.create(u))); @@ -1231,7 +1231,7 @@ describe('TimeslotsController', () => { }, ]; return await request(app.getHttpServer()) - .get('/timeslots') + .get('/v1/timeslots') .set('Authorization', `Bearer ${newMemberToken}`) .expect(200) .expect((res) => {