This commit is contained in:
parent
c5eef959ee
commit
2be7320d89
|
@ -24,13 +24,10 @@ describe('Component vnCalendar', () => {
|
|||
let nextMonth = new Date(date.getTime());
|
||||
nextMonth.setMonth(nextMonth.getMonth() + 1);
|
||||
|
||||
controller.getMailStates = jasmine.createSpy(controller, 'getMailStates');
|
||||
|
||||
controller.moveNext();
|
||||
|
||||
expect(controller.month).toEqual(nextMonth.getMonth());
|
||||
expect(controller.emit).toHaveBeenCalledWith('move', {$date: nextMonth});
|
||||
expect(controller.getMailStates).toHaveBeenCalledWith({$day: nextMonth});
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -40,13 +37,10 @@ describe('Component vnCalendar', () => {
|
|||
let previousMonth = new Date(date.getTime());
|
||||
previousMonth.setMonth(previousMonth.getMonth() - 1);
|
||||
|
||||
controller.getMailStates = jasmine.createSpy(controller, 'getMailStates');
|
||||
|
||||
controller.movePrevious();
|
||||
|
||||
expect(controller.month).toEqual(previousMonth.getMonth());
|
||||
expect(controller.emit).toHaveBeenCalledWith('move', {$date: previousMonth});
|
||||
expect(controller.getMailStates).toHaveBeenCalledWith({$day: previousMonth});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue