Skip to content

Commit

Permalink
Improving question generation coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288347 committed Apr 20, 2024
1 parent 1e2a705 commit c6ca347
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Question generation', function() {

dbService.addQuestion.mockResolvedValue();
// Llama a la función que deseas probar
await generator.generateQuestions(1);
await generator.generateQuestions(1,"en","Geography");

// Verifica que la función haya realizado las operaciones esperadas
expect(dbService.addQuestion).toHaveBeenCalledTimes(1);
Expand All @@ -76,7 +76,7 @@ describe('Question generation', function() {

console.error = jest.fn();
// Llama a la función que deseas probar
await generator.generateQuestions(1);
await generator.generateQuestions(1,"en");

// Verifica que la función haya realizado las operaciones esperadas
expect(dbService.addQuestion).toHaveBeenCalledTimes(0);
Expand Down

0 comments on commit c6ca347

Please sign in to comment.