4856-worker.time-control #1375

Merged
joan merged 32 commits from 4856-worker.time-control into dev 2023-03-16 06:39:02 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 07edacd557 - Show all commits

View File

@ -24,13 +24,13 @@ describe('Component vnCalendar', () => {
let nextMonth = new Date(date.getTime()); let nextMonth = new Date(date.getTime());
nextMonth.setMonth(nextMonth.getMonth() + 1); nextMonth.setMonth(nextMonth.getMonth() + 1);
controller.getStates = jasmine.createSpy(controller, 'getStates'); controller.getMailStates = jasmine.createSpy(controller, 'getMailStates');
controller.moveNext(); controller.moveNext();
expect(controller.month).toEqual(nextMonth.getMonth()); expect(controller.month).toEqual(nextMonth.getMonth());
expect(controller.emit).toHaveBeenCalledWith('move', {$date: nextMonth}); expect(controller.emit).toHaveBeenCalledWith('move', {$date: nextMonth});
expect(controller.getStates).toHaveBeenCalledWith({$day: nextMonth}); expect(controller.getMailStates).toHaveBeenCalledWith({$day: nextMonth});
}); });
}); });
@ -40,13 +40,13 @@ describe('Component vnCalendar', () => {
let previousMonth = new Date(date.getTime()); let previousMonth = new Date(date.getTime());
previousMonth.setMonth(previousMonth.getMonth() - 1); previousMonth.setMonth(previousMonth.getMonth() - 1);
controller.getStates = jasmine.createSpy(controller, 'getStates'); controller.getMailStates = jasmine.createSpy(controller, 'getMailStates');
controller.movePrevious(); controller.movePrevious();
expect(controller.month).toEqual(previousMonth.getMonth()); expect(controller.month).toEqual(previousMonth.getMonth());
expect(controller.emit).toHaveBeenCalledWith('move', {$date: previousMonth}); expect(controller.emit).toHaveBeenCalledWith('move', {$date: previousMonth});
expect(controller.getStates).toHaveBeenCalledWith({$day: previousMonth}); expect(controller.getMailStates).toHaveBeenCalledWith({$day: previousMonth});
}); });
}); });