node doesn't like floating point numbers as setTimeout arg
This commit is contained in:
parent
b1e8f61c87
commit
4e65357242
3 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ var callAsync = require("../../test-utils/callAsync")
|
|||
var throttle = require("../../api/throttle")
|
||||
|
||||
o.spec("throttle", function() {
|
||||
var FRAME_BUDGET = 1000 / 60
|
||||
var FRAME_BUDGET = Math.floor(1000 / 60)
|
||||
var spy, throttled
|
||||
o.beforeEach(function() {
|
||||
spy = o.spy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue