correct host element
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user