Skip to content

Commit

Permalink
fix: seems to be good
Browse files Browse the repository at this point in the history
  • Loading branch information
Suboyyy committed Oct 6, 2024
1 parent c51188b commit 95b9864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/users/createCart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,8 @@ describe('POST /users/current/carts', () => {
});

it('should fail as the user is not in the same team', async () => {
const otherTeam = await createFakeTeam({ members: 1, tournament: tournament.id, name: 'reallydontcare' });
const otherTeam = await createFakeTeam({ members: 1, tournament: 'ssbu', name: 'reallydontcare' });
const userInOtherTeam = getCaptain(otherTeam);


await request(app)
.post(`/users/current/carts`)
Expand All @@ -362,6 +361,7 @@ describe('POST /users/current/carts', () => {
// Delete the user to not make the results wrong for the success test
await database.cartItem.deleteMany({ where: { forUserId: userInOtherTeam.id } });
await database.cart.deleteMany({ where: { userId: userInOtherTeam.id } });
await database.team.delete({ where: { captainId: userInOtherTeam.id } });
await database.user.delete({ where: { id: userInOtherTeam.id } });
});

Expand Down

0 comments on commit 95b9864

Please sign in to comment.