From e9e3cd304b8c4f8ff35578ce58e8279e65b26eeb Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 11 Sep 2015 16:59:28 -0700 Subject: [PATCH] Revert internal files that didn't get pulled internally first See all the packager files in this commit: https://github.com/facebook/react-native/commit/f83675d1915b5e77638c117c82f8641cea367ffe#diff-7b5603771e245e5b0cd7223277db3db4 cc @foghina --- .../react-packager/src/Activity/__tests__/Activity-test.js | 3 --- .../DependencyGraph/__tests__/DependencyGraph-test.js | 3 +-- packager/react-packager/src/Server/__tests__/Server-test.js | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packager/react-packager/src/Activity/__tests__/Activity-test.js b/packager/react-packager/src/Activity/__tests__/Activity-test.js index 08254f792..90ac43e85 100644 --- a/packager/react-packager/src/Activity/__tests__/Activity-test.js +++ b/packager/react-packager/src/Activity/__tests__/Activity-test.js @@ -9,9 +9,6 @@ 'use strict'; jest.autoMockOff(); -jest.setMock('chalk', { - dim: function(s) { return s; }, -}); describe('Activity', () => { const origConsoleLog = console.log; diff --git a/packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js b/packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js index 092a8c05b..6dc2bc7ee 100644 --- a/packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js +++ b/packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js @@ -23,8 +23,7 @@ jest .dontMock('../../AssetModule') .dontMock('../../Module') .dontMock('../../Package') - .dontMock('../../ModuleCache') - .setMock('chalk', { dim: function(s) { return s; } }); + .dontMock('../../ModuleCache'); const Promise = require('promise'); diff --git a/packager/react-packager/src/Server/__tests__/Server-test.js b/packager/react-packager/src/Server/__tests__/Server-test.js index 7d0c20a69..be4feebfd 100644 --- a/packager/react-packager/src/Server/__tests__/Server-test.js +++ b/packager/react-packager/src/Server/__tests__/Server-test.js @@ -14,8 +14,7 @@ jest.setMock('worker-farm', function() { return () => {}; }) .dontMock('url') .setMock('timers', { setImmediate: (fn) => setTimeout(fn, 0) }) .setMock('uglify-js') - .dontMock('../') - .setMock('chalk', { dim: function(s) { return s; } }); + .dontMock('../'); const Promise = require('promise');