Skip to content

Commit

Permalink
fixing backward compatibiliyt with 0.8 (testing only)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrak committed Mar 16, 2013
1 parent 734515f commit 400aec5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/helpers/waits-for.coffee
Expand Up @@ -12,4 +12,7 @@ module.exports = waitsFor = (fn, message, range, finish, time = process.hrtime()
assert elapsed > min, "Condition succeeded before #{min}ms were up" assert elapsed > min, "Condition succeeded before #{min}ms were up"
return finish() return finish()


setImmediate -> waitsFor.call @, fn, message, range, finish, time if setImmediate?
setImmediate -> waitsFor.call @, fn, message, range, finish, time
else
setTimeout (-> waitsFor.call @, fn, message, range, finish, time), 5

0 comments on commit 400aec5

Please sign in to comment.