Skip to content

Commit

Permalink
Arreglado un test de stats
Browse files Browse the repository at this point in the history
  • Loading branch information
iyanfdezz committed Apr 16, 2024
1 parent 38f054d commit 57280eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/pages/Stats/Stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("Stats component", () => {
expect(headerElement).toBeInTheDocument();
});
Object.entries(userData).forEach(([key, value]) => {
if (key !== "username") {
if (key !== "username" && key!=="_id") {
if (key === "avgPoints" || key === "avgTime") {
expect(screen.getByText(value.toFixed(2))).toBeInTheDocument();
} else if (key === "ratioCorrect") {
Expand Down

0 comments on commit 57280eb

Please sign in to comment.