chore: fix tests

This commit is contained in:
mathuo 2024-04-25 21:10:07 +01:00
parent 2f0e34c99f
commit 4b1b4bab32
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -5103,8 +5103,16 @@ describe('dockviewComponent', () => {
const dockview = new DockviewComponent({
parentElement: container,
components: {
default: PanelContentPartTest,
createComponent(options) {
switch (options.name) {
case 'default':
return new PanelContentPartTest(
options.id,
options.name
);
default:
throw new Error(`unsupported`);
}
},
});
const api = new DockviewApi(dockview);
@ -5130,8 +5138,16 @@ describe('dockviewComponent', () => {
const dockview = new DockviewComponent({
parentElement: container,
components: {
default: PanelContentPartTest,
createComponent(options) {
switch (options.name) {
case 'default':
return new PanelContentPartTest(
options.id,
options.name
);
default:
throw new Error(`unsupported`);
}
},
});
const api = new DockviewApi(dockview);
@ -5159,8 +5175,16 @@ describe('dockviewComponent', () => {
const dockview = new DockviewComponent({
parentElement: container,
components: {
default: PanelContentPartTest,
createComponent(options) {
switch (options.name) {
case 'default':
return new PanelContentPartTest(
options.id,
options.name
);
default:
throw new Error(`unsupported`);
}
},
});
const api = new DockviewApi(dockview);
@ -5188,8 +5212,16 @@ describe('dockviewComponent', () => {
const dockview = new DockviewComponent({
parentElement: container,
components: {
default: PanelContentPartTest,
createComponent(options) {
switch (options.name) {
case 'default':
return new PanelContentPartTest(
options.id,
options.name
);
default:
throw new Error(`unsupported`);
}
},
});
const api = new DockviewApi(dockview);
@ -5216,8 +5248,16 @@ describe('dockviewComponent', () => {
const dockview = new DockviewComponent({
parentElement: container,
components: {
default: PanelContentPartTest,
createComponent(options) {
switch (options.name) {
case 'default':
return new PanelContentPartTest(
options.id,
options.name
);
default:
throw new Error(`unsupported`);
}
},
});
const api = new DockviewApi(dockview);