mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-07 00:02:53 +08:00
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import { EditorExtendable, editorExtrasTag } 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];
|
|
});
|
|
}); |