Skip to content

Commit 9be0448

Browse files
author
Konstantin Dinev
committed
test(extras): fixing overlay closing dialog test
1 parent acb629a commit 9be0448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular-extras/src/lib/context-menu/context-menu.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Subject } from 'rxjs';
44
import { IgxOverlayService } from 'igniteui-angular/core';
55
import { IgxContextMenuComponent } from './context-menu.component';
66
import { CHART_TYPE } from '../directives/chart-integration/chart-types';
7+
import { IgxChartMenuComponent } from 'igniteui-angular-extras';
78

89
describe('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

0 commit comments

Comments
 (0)