mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 02:52:39 +08:00
2e29bce9c3
* move serialization related file into cocos/serialization
10 lines
440 B
TypeScript
10 lines
440 B
TypeScript
import { instantiate } from "../../cocos/serialization";
|
|
import { CurveRange } from "../../cocos/particle";
|
|
|
|
test('Bugfix cocos/3d-tasks#12248; Instantiate a property of fast defined type', () => {
|
|
const curveRange = new CurveRange();
|
|
const curveRange2 = instantiate(curveRange);
|
|
expect(curveRange.spline).not.toBe(curveRange2.spline);
|
|
expect(curveRange.curve._internalCurve).not.toBe(curveRange2.curve._internalCurve);
|
|
});
|