implement :init call in tests
This commit is contained in:
@@ -28,6 +28,7 @@ class UmbTestExtensionController extends UmbBaseExtensionController {
|
||||
onPermissionChanged: (isPermitted: boolean) => void
|
||||
) {
|
||||
super(host, extensionRegistry, alias, onPermissionChanged);
|
||||
this._init();
|
||||
}
|
||||
|
||||
protected async _conditionsAreGood() {
|
||||
|
||||
@@ -15,6 +15,16 @@ import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
|
||||
class UmbTestControllerHostElement extends UmbControllerHostElementMixin(HTMLElement) {}
|
||||
|
||||
class UmbTestExtensionController extends UmbBaseExtensionController {
|
||||
constructor(
|
||||
host: UmbControllerHostElement,
|
||||
extensionRegistry: UmbExtensionRegistry<ManifestWithDynamicConditions>,
|
||||
alias: string,
|
||||
onPermissionChanged: (isPermitted: boolean) => void
|
||||
) {
|
||||
super(host, extensionRegistry, alias, onPermissionChanged);
|
||||
this._init();
|
||||
}
|
||||
|
||||
protected async _conditionsAreGood() {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user