mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
modify unit test (#13669)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { instantiate } from "../../cocos/serialization";
|
||||
import { CurveRange } from "../../cocos/particle";
|
||||
import { Mode } from "../../cocos/particle/animator/curve-range";
|
||||
|
||||
test('Bugfix cocos/3d-tasks#12248; Instantiate a property of fast defined type', () => {
|
||||
const curveRange = new CurveRange();
|
||||
curveRange.mode = Mode.Curve;
|
||||
const curveRange2 = instantiate(curveRange);
|
||||
expect(curveRange.spline).not.toBe(curveRange2.spline);
|
||||
expect(curveRange.curve._internalCurve).not.toBe(curveRange2.curve._internalCurve);
|
||||
|
||||
Reference in New Issue
Block a user