correct host element

This commit is contained in:
Niels Lyngsø
2023-12-06 14:25:52 +01:00
parent a0b5d27237
commit 9ff5a36bbb

View File

@@ -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', () => {