refactor(events): name of variable
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-11-09 10:21:28 +01:00
parent 7009cc0cc0
commit 0aa0358b50
1 changed files with 6 additions and 6 deletions

View File

@ -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'