mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-06 15:48:37 +08:00
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import { editorExtrasTag } from '@base/object';
|
|
import { EditorExtendable } from '../../cocos/core/data/editor-extendable';
|
|
|
|
describe('Editor extendable', () => {
|
|
test('Serialize', () => {
|
|
class Foo extends EditorExtendable {
|
|
|
|
}
|
|
|
|
const foo = new Foo();
|
|
|
|
foo[editorExtrasTag] = {};
|
|
|
|
const extras = foo[editorExtrasTag];
|
|
});
|
|
}); |