refactor(events): name of variable
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
7009cc0cc0
commit
0aa0358b50
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue