fix notification context
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { expect } from '@open-wc/testing';
|
||||
|
||||
import { UmbNotificationHandler, UmbNotificationContext } from './index.js';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
describe('UmbNotificationContext', () => {
|
||||
let notificationContext: UmbNotificationContext;
|
||||
|
||||
beforeEach(async () => {
|
||||
notificationContext = new UmbNotificationContext();
|
||||
notificationContext = new UmbNotificationContext(new UmbControllerHostElement());
|
||||
});
|
||||
|
||||
describe('Public API', () => {
|
||||
|
||||
@@ -9,7 +9,9 @@ export default {
|
||||
component: 'umb-notification-layout-default',
|
||||
decorators: [
|
||||
(story) =>
|
||||
html`<umb-context-provider key="UmbNotificationContext" .value=${new UmbNotificationContext()}>
|
||||
html`<umb-context-provider
|
||||
key="UmbNotificationContext"
|
||||
.create=${(host: any) => new UmbNotificationContext(host)}>
|
||||
${story()}
|
||||
</umb-context-provider>`,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user