Skip to content

Commit

Permalink
Update/seed (#144)
Browse files Browse the repository at this point in the history
* fix: seed

* fix: removed valorant

* fix: readded items in seed.sql because tests were not passing

* fix: a test in pdf.test.ts tried to create a team for the valorant tournament

---------

Co-authored-by: Teddy Roncin <[email protected]>
  • Loading branch information
TeddyRoncin and Teddy Roncin authored Oct 5, 2023
1 parent 8cdb193 commit b5f8035
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ INSERT INTO `tournaments` (`id`, `name`, `maxPlayers`, `playersPerTeam`, `cashpr
('lol', 'League of Legends', 160, 5, 0),
('ssbu', 'SSBU', 128, 1, 0),
('csgo', 'Counter-Strike : Global Offensive', 80, 5, 0),
('valorant', 'Valorant', 80, 5, 0),
('rl', 'Rocket League', 48, 3, 0),
('osu', 'Osu!', 48, 1, 0),
('tft', 'Teamfight Tactics', 32, 1, 0),
('open', 'Libre', 56, 1, 0);
('open', 'Libre', 56, 1, 0),
('pokemon', 'Pokémon', 24, 1, 0);
2 changes: 1 addition & 1 deletion tests/utils/pdf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Tests the PDF utils', () => {
});

let placeId = 0;
for (const tournamentId of ['lol', 'ssbu', 'csgo', 'valorant', 'rl', 'osu', 'tft', 'open']) {
for (const tournamentId of ['lol', 'ssbu', 'csgo', 'rl', 'osu', 'tft', 'open', 'pokemon']) {
it(`should generate a PDF ticket for ${tournamentId}`, async () => {
// Create a fake user and add it in a random team
const team = await createFakeTeam({ tournament: tournamentId as string });
Expand Down

0 comments on commit b5f8035

Please sign in to comment.