From 0aa0358b50cba6a5cf2c6bbe35ecc34eaa32426f Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 9 Nov 2021 10:21:28 +0100 Subject: [PATCH] refactor(events): name of variable --- modules/zone/front/events/index.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/zone/front/events/index.spec.js b/modules/zone/front/events/index.spec.js index bdb7f36a6..ed2c91c31 100644 --- a/modules/zone/front/events/index.spec.js +++ b/modules/zone/front/events/index.spec.js @@ -17,21 +17,21 @@ describe('component vnZoneEvents', () => { describe('refresh()', () => { it('should set the zone and then call both getSummary() and getWarehouses()', () => { - const now = '2021-10-01'; + const date = '2021-10-01'; controller.$params.id = 999; controller.$.calendar = { - firstDay: now, - lastDay: now + firstDay: date, + lastDay: date }; const params = { zoneFk: controller.$params.id, - started: now, - ended: now + started: date, + ended: date }; - const query = `Zones/getEventsFiltered?ended=${now}&started=${now}&zoneFk=${params.zoneFk}`; + const query = `Zones/getEventsFiltered?ended=${date}&started=${date}&zoneFk=${params.zoneFk}`; const response = { events: 'myEvents', exclusions: 'myExclusions'