Skip to content

Commit

Permalink
test(motionPath): add additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmeinke committed Jul 30, 2017
1 parent 65b5178 commit b6cd064
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/motion-path-force.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

0 comments on commit b6cd064

Please sign in to comment.