From b9ceecb31fcafcc59870fd8bc92bf42d0cdaf7b9 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Thu, 28 Jan 2016 22:01:34 -0800 Subject: [PATCH] Adapt tests to new Object/es7 polyfill Summary: public Adds the new polyfill to the relevant tests (Resolver/BundlesLayout) Reviewed By: martinbigio Differential Revision: D2878697 fb-gh-sync-id: 9681f16dd19a0b337aac63101450c703bf387346 --- .../__tests__/BundlesLayoutIntegration-test.js | 1 + .../src/Resolver/__tests__/Resolver-test.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js b/packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js index fe4481a09..00868b229 100644 --- a/packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js +++ b/packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js @@ -36,6 +36,7 @@ describe('BundlesLayout', () => { 'polyfills/String.prototype.es6.js', 'polyfills/Array.prototype.es6.js', 'polyfills/Array.es6.js', + 'polyfills/Object.es7.js', 'polyfills/babelHelpers.js', ]; const baseFs = getBaseFs(); diff --git a/packager/react-packager/src/Resolver/__tests__/Resolver-test.js b/packager/react-packager/src/Resolver/__tests__/Resolver-test.js index 825399b4a..b542d43b1 100644 --- a/packager/react-packager/src/Resolver/__tests__/Resolver-test.js +++ b/packager/react-packager/src/Resolver/__tests__/Resolver-test.js @@ -138,6 +138,18 @@ describe('Resolver', function() { 'polyfills/Array.prototype.es6.js', ], }, + { id: 'polyfills/Object.es7.js', + isPolyfill: true, + path: 'polyfills/Object.es7.js', + dependencies: [ + 'polyfills/polyfills.js', + 'polyfills/console.js', + 'polyfills/error-guard.js', + 'polyfills/String.prototype.es6.js', + 'polyfills/Array.prototype.es6.js', + 'polyfills/Array.es6.js', + ], + }, { id: 'polyfills/babelHelpers.js', isPolyfill: true, path: 'polyfills/babelHelpers.js', @@ -148,6 +160,7 @@ describe('Resolver', function() { 'polyfills/String.prototype.es6.js', 'polyfills/Array.prototype.es6.js', 'polyfills/Array.es6.js', + 'polyfills/Object.es7.js', ], }, ]); @@ -211,6 +224,7 @@ describe('Resolver', function() { 'polyfills/String.prototype.es6.js', 'polyfills/Array.prototype.es6.js', 'polyfills/Array.es6.js', + 'polyfills/Object.es7.js', 'polyfills/babelHelpers.js', ] },