From 36a8358ae70cc4e0e862e4ea4c9d638e2f66d252 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 16 Sep 2015 12:58:45 -0700 Subject: [PATCH] Fix more tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: beeper node modules has a `return` statement outside of a function which doesn't parse. To fix it, we mock it. Also, setupEnvPolyfills is no longer being used. Closes https://github.com/facebook/react-native/pull/2770 Reviewed By: @​svcscm Differential Revision: D2448882 Pulled By: @vjeux --- local-cli/__mocks__/beeper.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 local-cli/__mocks__/beeper.js diff --git a/local-cli/__mocks__/beeper.js b/local-cli/__mocks__/beeper.js new file mode 100644 index 00000000000..93d96304b02 --- /dev/null +++ b/local-cli/__mocks__/beeper.js @@ -0,0 +1,5 @@ +// beeper@1.1.0 has a return statement outside of a function +// and therefore doesn't parse. Let's mock it so that we can +// run the tests. + +module.exports = function () {};