Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TT-107 fix: order variables
  • Loading branch information
scastillo-jp committed Jan 5, 2021
commit 1b7ebe6a6679424f2617eadfb4d7721e6d4734d9
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ describe('MonthPickerComponent', () => {
});

it('selectMonth should call selectDate', () => {
component.selectedYear = 2020;
spyOn(component, 'selectDate');
const monthSelect = new Date().getMonth();
const yearSelect = new Date().getFullYear();
spyOn(component, 'selectDate');

component.selectMonth(monthSelect);

expect(component.selectDate).toHaveBeenCalledWith(monthSelect, yearSelect);
});

Expand Down