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);