From e022dfcba97192de9929ee058b1ea3a490ad9dc9 Mon Sep 17 00:00:00 2001 From: CarolinaUniovi Date: Sat, 4 May 2024 20:43:25 +0200 Subject: [PATCH] added timeout --- game/qgservice/qg.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/qgservice/qg.test.js b/game/qgservice/qg.test.js index 98e9629..de149eb 100644 --- a/game/qgservice/qg.test.js +++ b/game/qgservice/qg.test.js @@ -38,8 +38,8 @@ describe('qg-service', function () { expect(getQuestionsSpy).toHaveBeenCalledWith(expect.objectContaining({ params: { lang } }), expect.any(Object)); getQuestionsSpy.mockRestore(); // Restore the spy after the test done(); - }); - }); + }).timeout(5000); + }).timeout(5000); }); describe('POST /getQuestionsByIds', function () { @@ -62,7 +62,7 @@ describe('qg-service', function () { expect(getQuestionsByIdsSpy).toHaveBeenCalledWith(expect.objectContaining({ body: { ids } }), expect.any(Object)); getQuestionsByIdsSpy.mockRestore(); // Restore the spy after the test done(); - }); - }); + }).timeout(5000); + }).timeout(5000); }); }); \ No newline at end of file