File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Subject } from 'rxjs';
44import { IgxOverlayService } from 'igniteui-angular/core' ;
55import { IgxContextMenuComponent } from './context-menu.component' ;
66import { CHART_TYPE } from '../directives/chart-integration/chart-types' ;
7+ import { IgxChartMenuComponent } from 'igniteui-angular-extras' ;
78
89describe ( 'IgxContextMenuComponent' , ( ) => {
910 let component : IgxContextMenuComponent ;
@@ -286,7 +287,7 @@ describe('IgxContextMenuComponent', () => {
286287
287288 // The closing event checks instanceof IgxChartMenuComponent — we mock at the overlay level
288289 ( mockOverlay . closing as Subject < any > ) . next ( {
289- componentRef : { instance : mockInstance }
290+ componentRef : { instance : TestBed . createComponent ( IgxChartMenuComponent ) . componentInstance }
290291 } ) ;
291292
292293 // When the closed component looks like an IgxChartMenuComponent and _dialogId is set, tabsMenu.open should be called
You can’t perform that action at this time.
0 commit comments