1
0
mirror of synced 2026-03-22 18:48:34 +08:00

chore(editor): 删除无用代码

This commit is contained in:
roymondchen
2022-08-22 19:46:05 +08:00
committed by jia000
parent 9b0db4a807
commit 3cdcca3b0b
3 changed files with 18 additions and 72 deletions

View File

@@ -38,28 +38,6 @@ describe('setNewItemId', () => {
expect(config.id === 1).toBeFalsy();
expect(config.items[0].id === 2).toBeFalsy();
});
test('pop', async () => {
const config = {
id: 1,
type: NodeType.PAGE,
items: [
{
type: 'button',
id: 2,
pop: 3,
},
{
type: 'pop',
id: 3,
},
],
};
await props.setNewItemId(config);
expect(config.items[0].pop === 3).toBeFalsy();
expect(config.items[1].id === 3).toBeFalsy();
expect(config.items[1].id === config.items[0].pop).toBeTruthy();
});
});
test('getDefaultValue', async () => {