[Tests] Update tests to run on io.js with the latest version of jest

Updates the tests in small ways so they run on io.js with some updates:

 - The Cache test which relies on Promises uses `runAllImmediates` for modern versions of Node because bluebird uses `setImmediate` instead of `process.nextTick` for Node >0.10.

Test Plan: Run `npm test` with the latest version of jest.
This commit is contained in:
James Ide 2015-05-22 23:58:02 -07:00
parent 4ef609192d
commit 5a0723cfba
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ describe('JSTransformer Cache', function() {
return Promise.resolve('baz value'); return Promise.resolve('baz value');
}); });
jest.runAllTicks(); jest.runAllImmediates();
expect(fs.writeFile).toBeCalled(); expect(fs.writeFile).toBeCalled();
}); });
}); });