Skip to content

Commit

Permalink
precision test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legomushroom committed Jul 25, 2015
1 parent 63f36ef commit dd6430f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/tween/timeline.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe 'Timeline ->', ->
t = new Timeline repeat: 2
t.add new Tween duration: 200
t.setProgress .6
expect(t.timelines[0].progress).toBe .8
expect(t.timelines[0].progress).toBeCloseTo .8, 5

it 'should end at 1', (dfr)->
t = new Timeline repeat: 2
Expand Down
2 changes: 1 addition & 1 deletion spec/tween/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
duration: 200
}));
t.setProgress(.6);
return expect(t.timelines[0].progress).toBe(.8);
return expect(t.timelines[0].progress).toBeCloseTo(.8, 5);
});
return it('should end at 1', function(dfr) {
var proc, t;
Expand Down

0 comments on commit dd6430f

Please sign in to comment.