mirror of https://github.com/status-im/metro.git
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:
parent
fb09783e81
commit
d503cf243c
|
@ -36,6 +36,7 @@ describe('BundlesLayout', () => {
|
||||||
'polyfills/String.prototype.es6.js',
|
'polyfills/String.prototype.es6.js',
|
||||||
'polyfills/Array.prototype.es6.js',
|
'polyfills/Array.prototype.es6.js',
|
||||||
'polyfills/Array.es6.js',
|
'polyfills/Array.es6.js',
|
||||||
|
'polyfills/Object.es7.js',
|
||||||
'polyfills/babelHelpers.js',
|
'polyfills/babelHelpers.js',
|
||||||
];
|
];
|
||||||
const baseFs = getBaseFs();
|
const baseFs = getBaseFs();
|
||||||
|
|
|
@ -138,6 +138,18 @@ describe('Resolver', function() {
|
||||||
'polyfills/Array.prototype.es6.js',
|
'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',
|
{ id: 'polyfills/babelHelpers.js',
|
||||||
isPolyfill: true,
|
isPolyfill: true,
|
||||||
path: 'polyfills/babelHelpers.js',
|
path: 'polyfills/babelHelpers.js',
|
||||||
|
@ -148,6 +160,7 @@ describe('Resolver', function() {
|
||||||
'polyfills/String.prototype.es6.js',
|
'polyfills/String.prototype.es6.js',
|
||||||
'polyfills/Array.prototype.es6.js',
|
'polyfills/Array.prototype.es6.js',
|
||||||
'polyfills/Array.es6.js',
|
'polyfills/Array.es6.js',
|
||||||
|
'polyfills/Object.es7.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
@ -211,6 +224,7 @@ describe('Resolver', function() {
|
||||||
'polyfills/String.prototype.es6.js',
|
'polyfills/String.prototype.es6.js',
|
||||||
'polyfills/Array.prototype.es6.js',
|
'polyfills/Array.prototype.es6.js',
|
||||||
'polyfills/Array.es6.js',
|
'polyfills/Array.es6.js',
|
||||||
|
'polyfills/Object.es7.js',
|
||||||
'polyfills/babelHelpers.js',
|
'polyfills/babelHelpers.js',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue