mirror of https://github.com/status-im/metro.git
Update all tests to use Jasmine 2
Reviewed By: vjeux Differential Revision: D2782581 fb-gh-sync-id: 1d938a2bbdd8670c917c1793234dfdcb29fd4511
This commit is contained in:
parent
da44545090
commit
869c0543d0
|
@ -34,8 +34,7 @@ describe('loadBundles', () => {
|
|||
|
||||
pit('shouldn\'t request already loaded bundles', () => {
|
||||
loadBundles.mockImpl((bundles, callback) => callback());
|
||||
return global
|
||||
.__loadBundles(['bundle.0'])
|
||||
return global.__loadBundles(['bundle.0'])
|
||||
.then(() => global.__loadBundles(['bundle.0']))
|
||||
.then(() => expect(loadBundlesCalls.length).toBe(1));
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint global-strict:0 */
|
||||
(global => {
|
||||
let loadBundlesOnNative = (bundles) =>
|
||||
new Promise((_, resolve) =>
|
||||
new Promise((resolve) =>
|
||||
require('NativeModules').RCTBundlesLoader.loadBundles(bundles, resolve));
|
||||
|
||||
let requestedBundles = Object.create(null);
|
||||
|
|
Loading…
Reference in New Issue