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
This commit is contained in:
David Aurelio 2016-01-28 22:01:34 -08:00 committed by facebook-github-bot-0
parent 2d9876dedf
commit b9ceecb31f
2 changed files with 15 additions and 0 deletions

View File

@ -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();

View File

@ -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',
]
},