diff --git a/tests/admin/emails/send.test.ts b/tests/admin/emails/send.test.ts index f011ac7a..b61e145d 100644 --- a/tests/admin/emails/send.test.ts +++ b/tests/admin/emails/send.test.ts @@ -15,9 +15,9 @@ describe('POST /admin/emails', () => { before(async () => { admin = await createFakeUser({ type: UserType.orga, permissions: [Permission.admin] }); - await createFakeTeam({ members: 4, tournament: 'csgo' }); + await createFakeTeam({ members: 4, tournament: 'cs2' }); await createFakeTeam({ members: 2, tournament: 'lol' }); - [nonAdminUser] = (await createFakeTeam({ members: 5, tournament: 'csgo', locked: true })).players; + [nonAdminUser] = (await createFakeTeam({ members: 5, tournament: 'cs2', locked: true })).players; adminToken = generateToken(admin); }); @@ -163,7 +163,7 @@ describe('POST /admin/emails', () => { request(app) .post(`/admin/emails`) .send({ - tournamentId: 'csgo', + tournamentId: 'cs2', ...validMailBody, }) .set('Authorization', `Bearer ${adminToken}`) @@ -173,7 +173,7 @@ describe('POST /admin/emails', () => { request(app) .post(`/admin/emails`) .send({ - tournamentId: 'csgo', + tournamentId: 'cs2', locked: true, ...validMailBody, }) @@ -184,7 +184,7 @@ describe('POST /admin/emails', () => { request(app) .post(`/admin/emails`) .send({ - tournamentId: 'csgo', + tournamentId: 'cs2', locked: false, ...validMailBody, }) diff --git a/tests/discord/syncRoles.test.ts b/tests/discord/syncRoles.test.ts index 4ba84379..eebaf22f 100644 --- a/tests/discord/syncRoles.test.ts +++ b/tests/discord/syncRoles.test.ts @@ -18,7 +18,7 @@ describe('POST /discord/sync-roles', () => { locked: true, paid: true, members: 5, - tournament: 'csgo', + tournament: 'cs2', }); // We will test with one missing user (he may have left the server) for (const user of [...team.players.slice(1), ...team.coaches]) registerMember(user.discordId); @@ -27,13 +27,13 @@ describe('POST /discord/sync-roles', () => { const team2 = await createFakeTeam({ locked: false, members: 2, - tournament: 'csgo', + tournament: 'cs2', }); registerMember(team2.players[0].discordId); await database.tournament.update({ where: { - id: 'csgo', + id: 'cs2', }, data: { discordRoleId: registerRole(), diff --git a/tests/teams/createTeam.test.ts b/tests/teams/createTeam.test.ts index e12b1533..a5890017 100644 --- a/tests/teams/createTeam.test.ts +++ b/tests/teams/createTeam.test.ts @@ -151,12 +151,12 @@ describe('POST /teams', () => { const { body } = await request(app) .post('/teams') - .send({ ...teamBody, tournamentId: 'csgo' }) + .send({ ...teamBody, tournamentId: 'cs2' }) .set('Authorization', `Bearer ${newToken}`) .expect(201); expect(body.name).to.be.equal(teamBody.name); - expect(body.tournamentId).to.be.equal('csgo'); + expect(body.tournamentId).to.be.equal('cs2'); expect(body.captainId).to.be.equal(newUser.id); const remoteUser = await userOperations.fetchUser(body.captainId); expect(remoteUser.type).to.be.equal(teamBody.userType);