Update all tests to use Jasmine 2

Reviewed By: vjeux

Differential Revision: D2782581

fb-gh-sync-id: 1d938a2bbdd8670c917c1793234dfdcb29fd4511
This commit is contained in:
Christoph Pojer 2015-12-22 11:40:16 -08:00 committed by facebook-github-bot-3
parent da44545090
commit 869c0543d0
2 changed files with 2 additions and 3 deletions

View File

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

View File

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