diff --git a/tests/motion-path-force.js b/tests/motion-path-force.js index 6839678..f9c954a 100644 --- a/tests/motion-path-force.js +++ b/tests/motion-path-force.js @@ -56,4 +56,18 @@ describe('motionPath', () => { expect(points).toEqual(expectedPoints) }) + + it('should return FrameShape if motion path has no effect', () => { + const force = motionPath({ type: 'path', d: 'M0,0H10' }) + + const frameShape = frameShapeFromPlainShapeObject({ + type: 'rect', + x: 0, + y: 0, + width: 10, + height: 10 + }) + + expect(force(frameShape, 0)).toBe(frameShape) + }) })