Revert D5424282, D5433438, D5424365, D5417982 to unbreak React Native

fbshipit-source-id: 0b32966feabeff6b785dae52a173854e6805f150
This commit is contained in:
Mehdi Mulani 2017-07-17 16:34:26 -07:00 committed by Facebook Github Bot
parent 635e41027c
commit e4b94a4d77
1 changed files with 1 additions and 4 deletions

View File

@ -5294,10 +5294,7 @@ describe('DependencyGraph', function() {
await getOrderedDependenciesAsJSON(dgraph, root + '/index.js'); await getOrderedDependenciesAsJSON(dgraph, root + '/index.js');
throw new Error('expected `getOrderedDependenciesAsJSON` to fail'); throw new Error('expected `getOrderedDependenciesAsJSON` to fail');
} catch (error) { } catch (error) {
const { if (error.type !== 'UnableToResolveError') {
DuplicateHasteCandidatesError,
} = require('jest-haste-map/build/module_map');
if (!(error instanceof DuplicateHasteCandidatesError)) {
throw error; throw error;
} }
expect(console.warn).toBeCalled(); expect(console.warn).toBeCalled();