diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/extension-slot/extension-slot.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/extension-slot/extension-slot.test.ts
index 2c76f590ee..b95c8e64dd 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/extension-slot/extension-slot.test.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/extension-slot/extension-slot.test.ts
@@ -2,7 +2,7 @@ import { expect, fixture, html } from '@open-wc/testing';
import { ManifestDashboard, umbExtensionsRegistry } from '@umbraco-cms/extensions-registry';
import { defaultA11yConfig } from '@umbraco-cms/test-utils';
import { customElement } from 'lit/decorators.js';
-import { UmbExtensionSlotElement } from './extension-slot.element';
+import { InitializedExtension, UmbExtensionSlotElement } from './extension-slot.element';
@customElement('test-extension-slot-manifest-element')
class MyExtensionSlotManifestElement extends HTMLElement {
@@ -47,7 +47,7 @@ describe('UmbExtensionSlotElement', () => {
- describe('rendering methods', () => {
+ describe('rendering', () => {
beforeEach(async () => {
@@ -60,7 +60,7 @@ describe('UmbExtensionSlotElement', () => {
sections: ['test'],
pathname: 'test/test'
}
- })
+ });
});
@@ -76,21 +76,21 @@ describe('UmbExtensionSlotElement', () => {
expect(element.firstChild).to.be.instanceOf(MyExtensionSlotManifestElement);
});
+
+ it('use the render method', async () => {
+
+ element = await fixture(
+ html`
+ x.alias === 'unit-test-ext-slot-element-manifest'}
+ .renderMethod=${(manifest: InitializedExtension) => html`${manifest.component}`}>
+ `
+ );
+
+ expect(element.firstChild?.nodeName).to.be.equal('bla');
+ expect(element.firstChild?.firstChild).to.be.instanceOf(MyExtensionSlotManifestElement);
+ });
});
-
-/*
- public myExtensionWrapperMethod = (component: HTMLElement) => {
- return html`${component}`;
- };
-
- render() {
- return html`
-
-
- `;
- }
- */
-
-
});