From 57280eba4fb000b5c326d44d2ed200046d81f28a Mon Sep 17 00:00:00 2001 From: iyanfdezz Date: Tue, 16 Apr 2024 18:42:48 +0200 Subject: [PATCH] Arreglado un test de stats --- webapp/src/pages/Stats/Stats.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/pages/Stats/Stats.test.js b/webapp/src/pages/Stats/Stats.test.js index 78e52c16..2402abae 100644 --- a/webapp/src/pages/Stats/Stats.test.js +++ b/webapp/src/pages/Stats/Stats.test.js @@ -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") {