From 8064d6086a9386bf92ea24005e1b46c3f06e69c6 Mon Sep 17 00:00:00 2001 From: uo264915 Date: Thu, 18 Apr 2024 20:19:59 +0200 Subject: [PATCH] Test historial de preguntas --- webapp/src/components/HistoricalData.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/components/HistoricalData.test.js b/webapp/src/components/HistoricalData.test.js index 8f1fb619..44dbdd59 100644 --- a/webapp/src/components/HistoricalData.test.js +++ b/webapp/src/components/HistoricalData.test.js @@ -7,7 +7,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; const mockAxios = new MockAdapter(axios); -describe('HistoricalData component', () => { +describe('HistoricalData', () => { beforeEach(() => { mockAxios.reset(); }); @@ -15,12 +15,12 @@ describe('HistoricalData component', () => { 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(