Skip to content

Commit

Permalink
ahora el test del sameCategory deberia funcionar
Browse files Browse the repository at this point in the history
  • Loading branch information
uo282189 committed Apr 25, 2024
1 parent fc99847 commit 11a3e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/game/gameModes/SameCategoryMode.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const SameCategoryMode = require('./SameCategoryMode');
import SameCategoryMode from './SameCategoryMode';

describe('SameCategoryMode', () => {

Expand Down Expand Up @@ -33,7 +33,7 @@ describe('SameCategoryMode', () => {
});

test('fetchQuestions should handle errors', async () => {
const sameCategoryMode = new SameCategoryMode();
const sameCategoryMode = new SameCategoryMode("arte");
sameCategoryMode.apiEndpoint = 'https://example.com';
sameCategoryMode.questions = [];
sameCategoryMode.isLoading = true;
Expand All @@ -47,7 +47,7 @@ describe('SameCategoryMode', () => {
});

test('sendHistory should not save game history', async () => {
const sameCategoryMode = new SameCategoryMode();
const sameCategoryMode = new SameCategoryMode("arte");
sameCategoryMode.sendHistory();
});

Expand Down

0 comments on commit 11a3e0b

Please sign in to comment.