From 5f773c403aba75c579dc9ef443a4eb6756de1192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20D=C3=ADaz=20Cancillo?= Date: Sun, 28 Apr 2024 19:26:24 +0200 Subject: [PATCH] errata --- webapp/src/components/GeneratedQuestionsList.test.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/GeneratedQuestionsList.test.js b/webapp/src/components/GeneratedQuestionsList.test.js index b09c09d3..f698e5e9 100644 --- a/webapp/src/components/GeneratedQuestionsList.test.js +++ b/webapp/src/components/GeneratedQuestionsList.test.js @@ -33,7 +33,7 @@ describe('GeneratedQuestionsList component', () => { }); }); - async function render(){ + async function renderGeneratedQuestionsList(){ await act( async () => { render( {}} />); }); @@ -66,9 +66,7 @@ describe('GeneratedQuestionsList component', () => { }); test('should order questions by questionBody correctly', async () => { - await act(async () => { - render( {}} />); - }); + await render(); const questionBodyHeader = screen.getByRole('columnheader', { name: /Pregunta/i }); @@ -96,9 +94,7 @@ describe('GeneratedQuestionsList component', () => { }); test('should order questions by answer correctly', async () => { - await act(async () => { - render( {}} />); - }); + await render(); const answerHeader = screen.getByRole('columnheader', { name: /Respuesta Correcta/i });