Skip to content

Commit

Permalink
fix test\'s precision fails
Browse files Browse the repository at this point in the history
  • Loading branch information
legomushroom committed Oct 20, 2015
1 parent 0e2f96f commit 47be040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/tween/timeline.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -866,9 +866,9 @@ describe 'Timeline ->', ->

tm0.setStartTime()

expect(tm0.props.endTime).toBe tm0.props.startTime + 500
expect(tm2.props.endTime).toBe tm0.props.startTime + 500
expect(tm2.props.startTime).toBe tm0.props.startTime + 100
expect(tm0.props.endTime).toBeCloseTo tm0.props.startTime + 500, 3
expect(tm2.props.endTime).toBeCloseTo tm0.props.startTime + 500, 3
expect(tm2.props.startTime).toBeCloseTo tm0.props.startTime + 100, 3
it 'should set right endTime times', ->
tm0 = new mojs.Timeline repeat: 2
tm1 = new mojs.Timeline
Expand Down

0 comments on commit 47be040

Please sign in to comment.