From 4c54efca1e1e90da7fe5f78cc721aa1d14c063a5 Mon Sep 17 00:00:00 2001 From: uo289267 Date: Thu, 18 Apr 2024 11:48:56 +0200 Subject: [PATCH] Resolved jest tests problems --- webapp/src/components/questionView/QuestionGenerator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/components/questionView/QuestionGenerator.js b/webapp/src/components/questionView/QuestionGenerator.js index 2add8f05..9b5a38b9 100644 --- a/webapp/src/components/questionView/QuestionGenerator.js +++ b/webapp/src/components/questionView/QuestionGenerator.js @@ -9,7 +9,7 @@ class QuestionGenerator{ } async generateQuestions(lang, type, amount) { - + /* try { //const response = await fetch(this.apiUrl); //const receivedQuestions = await response.json(); @@ -35,8 +35,8 @@ class QuestionGenerator{ throw new Error(error); } + */ - /* try { let response; if(type==="COMPETITIVE"){ @@ -55,7 +55,7 @@ class QuestionGenerator{ } catch (error) { throw new Error(error); } - */ + } }