From a07d960a2e9be86ceb133cc4138de8b2972a3f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Thu, 16 Jul 2020 12:09:50 +0200 Subject: [PATCH] Fixed test --- modules/worker/front/calendar/index.spec.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/worker/front/calendar/index.spec.js b/modules/worker/front/calendar/index.spec.js index 07e574d09..9d14cca20 100644 --- a/modules/worker/front/calendar/index.spec.js +++ b/modules/worker/front/calendar/index.spec.js @@ -51,12 +51,8 @@ describe('Worker', () => { describe('worker() setter', () => { it(`should perform a get query and set the reponse data on the model`, () => { jest.spyOn(controller, 'getIsSubordinate').mockReturnValue(true); - jest.spyOn(controller, 'refresh').mockReturnValue(new Promise(resolve => { - return resolve(); - })); let today = new Date(); - let tomorrow = new Date(today.getTime()); tomorrow.setDate(tomorrow.getDate() + 1);