From d77297941fd11002a2baabebcbd18d7c923b541b Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Tue, 30 Jun 2020 09:08:08 +0200 Subject: [PATCH 1/2] fix date in a front test --- modules/zone/front/calendar/index.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/zone/front/calendar/index.spec.js b/modules/zone/front/calendar/index.spec.js index 6ea524020..0b5adc10d 100644 --- a/modules/zone/front/calendar/index.spec.js +++ b/modules/zone/front/calendar/index.spec.js @@ -33,6 +33,7 @@ describe('component vnZoneCalendar', () => { describe('step()', () => { it('should set the date month to 4 months backwards', () => { const now = new Date(); + now.setDate(15); now.setMonth(now.getMonth() - 4); controller.step(-1); From e7a866553c90c9f53a161a7e73d2140a8a74389f Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Tue, 30 Jun 2020 09:15:08 +0200 Subject: [PATCH 2/2] fix test --- modules/zone/front/calendar/index.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/zone/front/calendar/index.spec.js b/modules/zone/front/calendar/index.spec.js index 0b5adc10d..00645b317 100644 --- a/modules/zone/front/calendar/index.spec.js +++ b/modules/zone/front/calendar/index.spec.js @@ -46,6 +46,7 @@ describe('component vnZoneCalendar', () => { it('should set the date month to 4 months forwards', () => { const now = new Date(); + now.setDate(15); now.setMonth(now.getMonth() + 4); controller.step(1);