From aaa2968ea281bbf160cbb75d51ec500cbf782225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fern=C3=A1ndez=20Noriega?= Date: Tue, 23 Apr 2024 17:41:24 +0200 Subject: [PATCH] Fixed issue in mock --- questionservice/question-service.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/questionservice/question-service.test.js b/questionservice/question-service.test.js index 9f9454e..39a0dc9 100644 --- a/questionservice/question-service.test.js +++ b/questionservice/question-service.test.js @@ -18,8 +18,8 @@ jest.spyOn(global, 'fetch').mockImplementation(() => { let result = { results: {bindings: []} } for(let i=1;i<=100;i++){ //Simulating there is maximum number of repeated itemLabels (between the valid ones) - result.results.bindings.push({itemLabel: {value: "itemName1"} , image:{value: "imageUrl1_"+i}}) - imgsToAssociatesMap.set("imageUrl1_"+i, "itemName1") + result.results.bindings.push({itemLabel: {value: "itemName"+i} , image:{value: "imageUrl1_"+i}}) + imgsToAssociatesMap.set("imageUrl1_"+i, "itemName"+i) } for(let i=101;i<=195;i++){ //Simulating there are invalid itemLabels