mirror of https://github.com/status-im/metro.git
[react-packager] Fix Cache-test
This commit is contained in:
parent
d1dc802e20
commit
d1772eebe6
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue