[react-packager] Fix Cache-test

This commit is contained in:
Martín Bigio 2015-08-11 11:04:34 -07:00
parent d1dc802e20
commit d1772eebe6
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,14 @@ describe('JSTransformer Cache', () => {
});
pit('supports storing multiple fields', () => {
require('fs').stat.mockImpl((file, callback) => {
callback(null, {
mtime: {
getTime: () => {}
}
});
});
var cache = new Cache({
projectRoots: ['/rootDir'],
transformModulePath: 'x.js',