Skip to content

Commit

Permalink
errata
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287627 committed Apr 28, 2024
1 parent b1d8927 commit 5f773c4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions webapp/src/components/GeneratedQuestionsList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('GeneratedQuestionsList component', () => {
});
});

async function render(){
async function renderGeneratedQuestionsList(){
await act( async () => {
render(<GeneratedQuestionsList setError={() => {}} />);
});
Expand Down Expand Up @@ -66,9 +66,7 @@ describe('GeneratedQuestionsList component', () => {
});

test('should order questions by questionBody correctly', async () => {
await act(async () => {
render(<GeneratedQuestionsList setError={() => {}} />);
});
await render();

const questionBodyHeader = screen.getByRole('columnheader', { name: /Pregunta/i });

Expand Down Expand Up @@ -96,9 +94,7 @@ describe('GeneratedQuestionsList component', () => {
});

test('should order questions by answer correctly', async () => {
await act(async () => {
render(<GeneratedQuestionsList setError={() => {}} />);
});
await render();

const answerHeader = screen.getByRole('columnheader', { name: /Respuesta Correcta/i });

Expand Down

0 comments on commit 5f773c4

Please sign in to comment.