Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenFern committed Apr 23, 2024
1 parent 4c4e590 commit e98eda4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/ranking/Ranking.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Game Component', () => {
{
await act(async () => render(<MemoryRouter><Ranking /></MemoryRouter>));

expect(screen.getByText(/Clasificación/i)).toBeInTheDocument();
waitFor(() => expect(screen.getByText(/Clasificación/i)).toBeInTheDocument());
});

});
1 change: 0 additions & 1 deletion webapp/src/services/ranking.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const getRanking = async () =>
for (let i = 0; i < users.length; i++)
ranking.push( await getHistoryByUser(users[i]) );

console.log(ranking);
return ranking;
}

Expand Down

0 comments on commit e98eda4

Please sign in to comment.