Skip to content

Commit 48f8c01

Browse files
kdinevCopilot
andauthored
Update projects/igniteui-angular-extras/src/lib/context-menu/context-menu.component.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 95d7c92 commit 48f8c01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,9 @@ describe('IgxContextMenuComponent', () => {
278278
});
279279

280280
describe('overlayService.closing subscription', () => {
281-
it('should reopen tabsMenu when closing a chart dialog and dialogId exists', () => {
281+
it('should not reopen tabsMenu when closing a dialog that is not IgxChartMenuComponent', () => {
282282
// Simulate having an open dialog
283283
(component as any)._dialogId = 'dialog-id';
284-
const mockInstance = new (class { constructor() {} })();
285-
Object.setPrototypeOf(mockInstance, { constructor: { name: 'IgxChartMenuComponent' } });
286284

287285
// The closing event checks instanceof IgxChartMenuComponent — we mock at the overlay level
288286
(mockOverlay.closing as Subject<any>).next({

0 commit comments

Comments
 (0)