mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
2e29bce9c3
* move serialization related file into cocos/serialization
16 lines
401 B
TypeScript
16 lines
401 B
TypeScript
import { EditorExtendable } from "../../cocos/core/data/editor-extendable";
|
|
import { editorExtrasTag } from "../../cocos/core/data/editor-extras-tag";
|
|
|
|
describe('Editor extendable', () => {
|
|
test('Serialize', () => {
|
|
class Foo extends EditorExtendable {
|
|
|
|
}
|
|
|
|
const foo = new Foo();
|
|
|
|
foo[editorExtrasTag] = {};
|
|
|
|
const extras = foo[editorExtrasTag];
|
|
});
|
|
}); |