mirror of
https://github.com/mathuo/dockview
synced 2025-02-13 11:55:45 +00:00
chore: fix tests
This commit is contained in:
parent
2f0e34c99f
commit
4b1b4bab32
@ -5103,8 +5103,16 @@ describe('dockviewComponent', () => {
|
|||||||
|
|
||||||
const dockview = new DockviewComponent({
|
const dockview = new DockviewComponent({
|
||||||
parentElement: container,
|
parentElement: container,
|
||||||
components: {
|
createComponent(options) {
|
||||||
default: PanelContentPartTest,
|
switch (options.name) {
|
||||||
|
case 'default':
|
||||||
|
return new PanelContentPartTest(
|
||||||
|
options.id,
|
||||||
|
options.name
|
||||||
|
);
|
||||||
|
default:
|
||||||
|
throw new Error(`unsupported`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const api = new DockviewApi(dockview);
|
const api = new DockviewApi(dockview);
|
||||||
@ -5130,8 +5138,16 @@ describe('dockviewComponent', () => {
|
|||||||
|
|
||||||
const dockview = new DockviewComponent({
|
const dockview = new DockviewComponent({
|
||||||
parentElement: container,
|
parentElement: container,
|
||||||
components: {
|
createComponent(options) {
|
||||||
default: PanelContentPartTest,
|
switch (options.name) {
|
||||||
|
case 'default':
|
||||||
|
return new PanelContentPartTest(
|
||||||
|
options.id,
|
||||||
|
options.name
|
||||||
|
);
|
||||||
|
default:
|
||||||
|
throw new Error(`unsupported`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const api = new DockviewApi(dockview);
|
const api = new DockviewApi(dockview);
|
||||||
@ -5159,8 +5175,16 @@ describe('dockviewComponent', () => {
|
|||||||
|
|
||||||
const dockview = new DockviewComponent({
|
const dockview = new DockviewComponent({
|
||||||
parentElement: container,
|
parentElement: container,
|
||||||
components: {
|
createComponent(options) {
|
||||||
default: PanelContentPartTest,
|
switch (options.name) {
|
||||||
|
case 'default':
|
||||||
|
return new PanelContentPartTest(
|
||||||
|
options.id,
|
||||||
|
options.name
|
||||||
|
);
|
||||||
|
default:
|
||||||
|
throw new Error(`unsupported`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const api = new DockviewApi(dockview);
|
const api = new DockviewApi(dockview);
|
||||||
@ -5188,8 +5212,16 @@ describe('dockviewComponent', () => {
|
|||||||
|
|
||||||
const dockview = new DockviewComponent({
|
const dockview = new DockviewComponent({
|
||||||
parentElement: container,
|
parentElement: container,
|
||||||
components: {
|
createComponent(options) {
|
||||||
default: PanelContentPartTest,
|
switch (options.name) {
|
||||||
|
case 'default':
|
||||||
|
return new PanelContentPartTest(
|
||||||
|
options.id,
|
||||||
|
options.name
|
||||||
|
);
|
||||||
|
default:
|
||||||
|
throw new Error(`unsupported`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const api = new DockviewApi(dockview);
|
const api = new DockviewApi(dockview);
|
||||||
@ -5216,8 +5248,16 @@ describe('dockviewComponent', () => {
|
|||||||
|
|
||||||
const dockview = new DockviewComponent({
|
const dockview = new DockviewComponent({
|
||||||
parentElement: container,
|
parentElement: container,
|
||||||
components: {
|
createComponent(options) {
|
||||||
default: PanelContentPartTest,
|
switch (options.name) {
|
||||||
|
case 'default':
|
||||||
|
return new PanelContentPartTest(
|
||||||
|
options.id,
|
||||||
|
options.name
|
||||||
|
);
|
||||||
|
default:
|
||||||
|
throw new Error(`unsupported`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const api = new DockviewApi(dockview);
|
const api = new DockviewApi(dockview);
|
||||||
|
Loading…
Reference in New Issue
Block a user