From a3d3ed4aba161908f1f82f694df69ce337daad7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Tue, 18 Aug 2020 14:14:34 +0200 Subject: [PATCH] Fixed unit test --- modules/worker/front/calendar/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/worker/front/calendar/index.spec.js b/modules/worker/front/calendar/index.spec.js index 7637f3a16b..ebf52dc663 100644 --- a/modules/worker/front/calendar/index.spec.js +++ b/modules/worker/front/calendar/index.spec.js @@ -30,7 +30,7 @@ describe('Worker', () => { describe('year() setter', () => { it(`should set the year of the calendar date`, () => { - jest.spyOn(controller, 'refresh').mockReturnValue(new Promise()); + jest.spyOn(controller, 'refresh').mockReturnValue(Promise.resolve()); const previousYear = year - 1; controller.year = previousYear;