Skip to content

Commit 43a0e3d

Browse files
committed
TT-107 fix: order variables
1 parent 7007936 commit 43a0e3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ describe('MonthPickerComponent', () => {
5959
});
6060

6161
it('selectMonth should call selectDate', () => {
62-
component.selectedYear = 2020;
63-
spyOn(component, 'selectDate');
6462
const monthSelect = new Date().getMonth();
6563
const yearSelect = new Date().getFullYear();
64+
spyOn(component, 'selectDate');
65+
6666
component.selectMonth(monthSelect);
67+
6768
expect(component.selectDate).toHaveBeenCalledWith(monthSelect, yearSelect);
6869
});
6970

0 commit comments

Comments
 (0)