From 9ff5a36bbbf5d55d905183d71672c1a58db40a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 6 Dec 2023 14:25:52 +0100 Subject: [PATCH] correct host element --- .../core/notification/notification.context.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/notification/notification.context.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/notification/notification.context.test.ts index adf5fe6305..daf4bdd68d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/notification/notification.context.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/notification/notification.context.test.ts @@ -1,13 +1,17 @@ import { expect } from '@open-wc/testing'; import { UmbNotificationHandler, UmbNotificationContext } from './index.js'; -import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; +import { UmbControllerHostElementMixin } from '@umbraco-cms/backoffice/controller-api'; +import { customElement } from '@umbraco-cms/backoffice/external/lit'; + +@customElement('umb-test-controller-host') +export class UmbTestControllerHostElement extends UmbControllerHostElementMixin(HTMLElement) {} describe('UmbNotificationContext', () => { let notificationContext: UmbNotificationContext; beforeEach(async () => { - notificationContext = new UmbNotificationContext(new UmbControllerHostElement()); + notificationContext = new UmbNotificationContext(new UmbTestControllerHostElement()); }); describe('Public API', () => {