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
TT-108 fix: selectMonth should call selectDate test
  • Loading branch information
Guido Quezada committed Jan 5, 2021
commit c12decfb8dcae479850ca3ef2671a9bfb283ab35
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ describe('MonthPickerComponent', () => {


it('selectMonth should call selectDate', () => {
component.selectedYear = 2020;
spyOn(component, 'selectDate');
component.selectMonth(10);
expect(component.selectDate).toHaveBeenCalledWith(10, 2021);
expect(component.selectDate).toHaveBeenCalledWith(10, 2020);
});

});