Mock setImmediate to setTimeout in tests to facilitate sinon fake timer testing
Merge pull request #783 from batmanjs/mock_test_setimmediate

Mock setImmediate to setTimeout in tests