Skip to content

Commit

Permalink
modified the rest of the formats
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaineng committed Sep 26, 2024
1 parent 904fdee commit b625d56
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/(main)/league/all/page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ describe('Leagues Component', () => {
mockGetAllLeagues.mockResolvedValueOnce([league]);
mockAddUserToLeague.mockResolvedValue(
Promise.resolve({
documentId: user.documentId,
leagueId: league.leagueId,
selectedLeagues: [...(user.leagues ?? []), league.leagueId],
participants: [...(league.participants ?? []), user.id],
survivors: [...(league.survivors ?? []), user.id],
userDocumentId: user.documentId,
selectedLeague: league.leagueId,
selectedLeagues: [league.leagueId],
participants: [user.id],
survivors: [user.id],
}),
);

Expand Down Expand Up @@ -259,7 +259,6 @@ describe('Leagues Component', () => {

await waitFor(() => {
expect(mockAddUserToLeague).toHaveBeenCalledWith({
userDocumentId: user.documentId,
userDocumentId: user.documentId,
selectedLeague: league.leagueId,
selectedLeagues: [league.leagueId],
Expand Down

0 comments on commit b625d56

Please sign in to comment.