Skip to content

Commit 9c6fefd

Browse files
Guido Quezadajosepato87
authored andcommitted
TT-108 fix: selectMonth should call selectDate test
1 parent 2eb4062 commit 9c6fefd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/shared/components/month-picker/month-picker.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ describe('MonthPickerComponent', () => {
6060

6161

6262
it('selectMonth should call selectDate', () => {
63+
component.selectedYear = 2020;
6364
spyOn(component, 'selectDate');
6465
component.selectMonth(10);
65-
expect(component.selectDate).toHaveBeenCalledWith(10, 2021);
66+
expect(component.selectDate).toHaveBeenCalledWith(10, 2020);
6667
});
6768

6869
});

0 commit comments

Comments
 (0)