Skip to content

Commit

Permalink
Test historial de preguntas
Browse files Browse the repository at this point in the history
  • Loading branch information
uo264915 committed Apr 18, 2024
1 parent fd1a602 commit 8064d60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/HistoricalData.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import { BrowserRouter as Router } from 'react-router-dom';

const mockAxios = new MockAdapter(axios);

describe('HistoricalData component', () => {
describe('HistoricalData', () => {
beforeEach(() => {
mockAxios.reset();
});

it('muestra la página con el histórico de preguntas generadas', async () => {

mockAxios.onGet("http://localhost:8000/historicaldata").reply(200,
{ question: "¿Cual es la capital de Venezuela?",
[{ question: "¿Cual es la capital de Venezuela?",
correctOption: "Caracas",
incorrectOption1: "Doha",
incorrectOption2: "Barcelona",
incorrectOption3: "Nasáu"
});
}]);

render(<Router>
<HistoricalData />
Expand Down

0 comments on commit 8064d60

Please sign in to comment.