@@ -1588,14 +1588,14 @@ describe('IgxCalendar - ', () => {
15881588
15891589 expect ( year . nativeElement ) . toBe ( document . activeElement ) ;
15901590
1591- spyOn ( calendar . onActiveViewChanged , 'emit' ) . and . callThrough ( ) ;
1591+ spyOn ( calendar . activeViewChanged , 'emit' ) . and . callThrough ( ) ;
15921592
15931593 UIInteractions . triggerKeyDownEvtUponElem ( 'Enter' , document . activeElement ) ;
15941594 fixture . detectChanges ( ) ;
15951595 tick ( ) ;
15961596
1597- expect ( calendar . onActiveViewChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1598- expect ( calendar . onActiveViewChanged . emit ) . toHaveBeenCalledWith ( CalendarView . DECADE ) ;
1597+ expect ( calendar . activeViewChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1598+ expect ( calendar . activeViewChanged . emit ) . toHaveBeenCalledWith ( CalendarView . DECADE ) ;
15991599
16001600 const years = dom . queryAll ( By . css ( HelperTestFunctions . YEAR_CSSCLASS ) ) ;
16011601 let currentYear = dom . query ( By . css ( HelperTestFunctions . CURRENT_YEAR_CSSCLASS ) ) ;
@@ -1617,32 +1617,32 @@ describe('IgxCalendar - ', () => {
16171617 expect ( currentYear . nativeElement . textContent . trim ( ) ) . toMatch ( '2016' ) ;
16181618
16191619 const previousValue = fixture . componentInstance . calendar . viewDate ;
1620- spyOn ( calendar . onViewDateChanged , 'emit' ) . and . callThrough ( ) ;
1620+ spyOn ( calendar . viewDateChanged , 'emit' ) . and . callThrough ( ) ;
16211621
16221622 UIInteractions . triggerKeyDownEvtUponElem ( 'Enter' , currentYear . nativeElement ) ;
16231623
16241624 fixture . detectChanges ( ) ;
16251625 tick ( ) ;
16261626
16271627 const eventArgs : IViewDateChangeEventArgs = { previousValue, currentValue : fixture . componentInstance . calendar . viewDate } ;
1628- expect ( calendar . onViewDateChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1629- expect ( calendar . onViewDateChanged . emit ) . toHaveBeenCalledWith ( eventArgs ) ;
1628+ expect ( calendar . viewDateChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1629+ expect ( calendar . viewDateChanged . emit ) . toHaveBeenCalledWith ( eventArgs ) ;
16301630 expect ( calendar . viewDate . getFullYear ( ) ) . toEqual ( 2016 ) ;
16311631 } ) ) ;
16321632
16331633 it ( 'Should open months view, navigate through and select a month via KB.' , fakeAsync ( ( ) => {
16341634 const month = dom . queryAll ( By . css ( HelperTestFunctions . CALENDAR_DATE_CSSCLASS ) ) [ 0 ] ;
16351635 month . nativeElement . focus ( ) ;
1636- spyOn ( calendar . onActiveViewChanged , 'emit' ) . and . callThrough ( ) ;
1636+ spyOn ( calendar . activeViewChanged , 'emit' ) . and . callThrough ( ) ;
16371637
16381638 expect ( month . nativeElement ) . toBe ( document . activeElement ) ;
16391639
16401640 UIInteractions . triggerKeyDownEvtUponElem ( 'Enter' , document . activeElement ) ;
16411641 fixture . detectChanges ( ) ;
16421642 tick ( ) ;
16431643
1644- expect ( calendar . onActiveViewChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1645- expect ( calendar . onActiveViewChanged . emit ) . toHaveBeenCalledWith ( CalendarView . YEAR ) ;
1644+ expect ( calendar . activeViewChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1645+ expect ( calendar . activeViewChanged . emit ) . toHaveBeenCalledWith ( CalendarView . YEAR ) ;
16461646
16471647 const months = dom . queryAll ( By . css ( HelperTestFunctions . MONTH_CSSCLASS ) ) ;
16481648 const currentMonth = dom . query ( By . css ( HelperTestFunctions . CURRENT_MONTH_CSSCLASS ) ) ;
@@ -1672,15 +1672,15 @@ describe('IgxCalendar - ', () => {
16721672 expect ( document . activeElement . textContent . trim ( ) ) . toMatch ( 'Sep' ) ;
16731673
16741674 const previousValue = fixture . componentInstance . calendar . viewDate ;
1675- spyOn ( calendar . onViewDateChanged , 'emit' ) . and . callThrough ( ) ;
1675+ spyOn ( calendar . viewDateChanged , 'emit' ) . and . callThrough ( ) ;
16761676
16771677 UIInteractions . triggerKeyDownEvtUponElem ( 'Enter' , document . activeElement ) ;
16781678 fixture . detectChanges ( ) ;
16791679 tick ( ) ;
16801680
16811681 const eventArgs : IViewDateChangeEventArgs = { previousValue, currentValue : fixture . componentInstance . calendar . viewDate } ;
1682- expect ( calendar . onViewDateChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1683- expect ( calendar . onViewDateChanged . emit ) . toHaveBeenCalledWith ( eventArgs ) ;
1682+ expect ( calendar . viewDateChanged . emit ) . toHaveBeenCalledTimes ( 1 ) ;
1683+ expect ( calendar . viewDateChanged . emit ) . toHaveBeenCalledWith ( eventArgs ) ;
16841684 expect ( calendar . viewDate . getMonth ( ) ) . toEqual ( 8 ) ;
16851685 } ) ) ;
16861686
0 commit comments