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()', () => { describe('refresh()', () => {
it('should set the zone and then call both getSummary() and getWarehouses()', () => { 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.$params.id = 999;
controller.$.calendar = { controller.$.calendar = {
firstDay: now, firstDay: date,
lastDay: now lastDay: date
}; };
const params = { const params = {
zoneFk: controller.$params.id, zoneFk: controller.$params.id,
started: now, started: date,
ended: now 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 = { const response = {
events: 'myEvents', events: 'myEvents',
exclusions: 'myExclusions' exclusions: 'myExclusions'