From 9577837f990ff3289134e8c3f714d4cd5f73641b Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Mon, 30 Jan 2017 07:32:36 -0800 Subject: [PATCH] packager: simplify ScribeLogger-test Reviewed By: cpojer Differential Revision: D4481570 fbshipit-source-id: 27beae850806d8d7f526a3196b2962a18e514007 --- .../react-packager/src/lib/__mocks__/BatchProcessor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/metro-bundler/react-packager/src/lib/__mocks__/BatchProcessor.js b/packages/metro-bundler/react-packager/src/lib/__mocks__/BatchProcessor.js index 1d54393e..5f914808 100644 --- a/packages/metro-bundler/react-packager/src/lib/__mocks__/BatchProcessor.js +++ b/packages/metro-bundler/react-packager/src/lib/__mocks__/BatchProcessor.js @@ -23,13 +23,12 @@ class BatchProcessorMock { this._queue.push([item, callback]); } - flush(callback) { + flushMock() { const {_queue} = this; this._queue = []; process.nextTick(() => { this._processBatch(_queue.map(pair => pair[0]), (error, res) => { _queue.forEach((pair, i) => pair[1](error, res && res[i])); - callback(); }); }); }