diff --git a/packages/f-engine/test/timeline/keyFrames.test.tsx b/packages/f-engine/test/timeline/keyFrames.test.tsx index 527bc2c..0b73599 100644 --- a/packages/f-engine/test/timeline/keyFrames.test.tsx +++ b/packages/f-engine/test/timeline/keyFrames.test.tsx @@ -397,8 +397,8 @@ describe('player', () => { await delay(800); const shape = canvas.container.childNodes[1].childNodes[0].childNodes[0]; - //@ts-ignore - expect(Number(shape.style.width)).toBeGreaterThan(10); + //@ts-ignore 初始状态10px = 5 + expect(Number(shape.style.width)).toBeGreaterThan(5); }); it('播放中finish', async () => {