batmanjs/batman — pull request #783 by pushrax (2013-08-01 17:14:17+00:00)
Title: Mock setImmediate to setTimeout in tests

Sinon's fake timers are a great tool for testing async behaviour without having to actually wait in tests. However, our `setImmediate` function ends up doing a `postMessage` in Chrome, which the fake timers don't handle.

If we only use `setTimeout` instead, fake timers work.

@SoapyIllusions @ibawt