Skip to content

Commit

Permalink
Merge pull request #161 from Arquisoft/gameCategories
Browse files Browse the repository at this point in the history
Correccion parameters.test
  • Loading branch information
uo287998 authored Apr 22, 2024
2 parents 7251476 + 61b189e commit ae17196
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/src/components/Parameters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test('Establece Parametros Predeterminados', async () => {
const tj = localStorage.getItem("tiempoJuego");
const tj2 = localStorageMock.getItem("tiempoJuego");
const num = localStorage.getItem("numPreguntas");
expect(tj).toEqual("150");
expect(tj).toEqual("120");
expect(num).toEqual("9");

});
Expand All @@ -76,7 +76,7 @@ test('Establece Parametros Partida Corta', async () => {
const tj = localStorage.getItem("tiempoJuego");
const num = localStorage.getItem("numPreguntas");
expect(tj).toEqual("60");
expect(num).toEqual("5");
expect(num).toEqual("4");

});

Expand All @@ -92,8 +92,8 @@ test('Establece Parametros Partida Media', async () => {
// Wait for the state updates to propagate
const tj = localStorage.getItem("tiempoJuego");
const num = localStorage.getItem("numPreguntas");
expect(tj).toEqual("90");
expect(num).toEqual("10");
expect(tj).toEqual("150");
expect(num).toEqual("11");

});

Expand All @@ -109,7 +109,7 @@ test('Establece Parametros Partida Larga', async () => {
// Wait for the state updates to propagate
const tj = localStorage.getItem("tiempoJuego");
const num = localStorage.getItem("numPreguntas");
expect(tj).toEqual("210");
expect(num).toEqual("20");
expect(tj).toEqual("240");
expect(num).toEqual("19");

});

0 comments on commit ae17196

Please sign in to comment.