Skip to content

Commit 3e1ae63

Browse files
committed
1 parent 5b42ae5 commit 3e1ae63

File tree

6 files changed

+43
-43
lines changed

6 files changed

+43
-43
lines changed

e2e/app.constants.e2e.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
*
1616
*/
1717

18-
describe('App -> NativeModules -> Constants', () => {
19-
describe('.apps', () => {
20-
it('should be an array', () => {
18+
describe('App -> NativeModules -> Constants', function() {
19+
describe('.apps', function() {
20+
it('should be an array', function() {
2121
const { NATIVE_FIREBASE_APPS } = NativeModules.RNFBAppModule;
2222

2323
NATIVE_FIREBASE_APPS.should.be.an.Array();
2424
// secondaryFromNative + default
2525
NATIVE_FIREBASE_APPS.length.should.equal(2);
2626
});
2727

28-
it('array items contain name, options & state properties', () => {
28+
it('array items contain name, options & state properties', function() {
2929
const { NATIVE_FIREBASE_APPS } = NativeModules.RNFBAppModule;
3030

3131
NATIVE_FIREBASE_APPS.should.be.an.Array();

e2e/app.e2e.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
*
1616
*/
1717

18-
describe('firebase', () => {
19-
it('it should allow read the default app from native', () => {
18+
describe('firebase', function() {
19+
it('it should allow read the default app from native', function() {
2020
// app is created in tests app before all hook
2121
should.equal(firebase.app()._nativeInitialized, true);
2222
should.equal(firebase.app().name, '[DEFAULT]');
2323
});
2424

25-
it('it should create js apps for natively initialized apps', () => {
25+
it('it should create js apps for natively initialized apps', function() {
2626
should.equal(firebase.app('secondaryFromNative')._nativeInitialized, true);
2727
should.equal(firebase.app('secondaryFromNative').name, 'secondaryFromNative');
2828
});
2929

30-
it('natively initialized apps should have options available in js', () => {
30+
it('natively initialized apps should have options available in js', function() {
3131
const platformAppConfig = FirebaseHelpers.app.config();
3232
should.equal(firebase.app().options.apiKey, platformAppConfig.apiKey);
3333
should.equal(firebase.app().options.appId, platformAppConfig.appId);
@@ -37,7 +37,7 @@ describe('firebase', () => {
3737
should.equal(firebase.app().options.storageBucket, platformAppConfig.storageBucket);
3838
});
3939

40-
xit('it should initialize dynamic apps', () => {
40+
xit('it should initialize dynamic apps', function() {
4141
const name = `testscoreapp${FirebaseHelpers.id}`;
4242
const platformAppConfig = FirebaseHelpers.app.config();
4343
return firebase.initializeApp(platformAppConfig, name).then(newApp => {
@@ -48,24 +48,24 @@ describe('firebase', () => {
4848
});
4949
});
5050

51-
it('SDK_VERSION should return a string version', () => {
51+
it('SDK_VERSION should return a string version', function() {
5252
firebase.SDK_VERSION.should.be.a.String();
5353
});
5454
});
5555

56-
describe('firebase -> X', () => {
57-
it('apps should provide an array of apps', () => {
56+
describe('firebase -> X', function() {
57+
it('apps should provide an array of apps', function() {
5858
should.equal(!!firebase.apps.length, true);
5959
should.equal(firebase.apps.includes(firebase.app('[DEFAULT]')), true);
6060
return Promise.resolve();
6161
});
6262

63-
it('apps can get and set data collection', async () => {
63+
it('apps can get and set data collection', async function() {
6464
firebase.app().automaticDataCollectionEnabled = false;
6565
should.equal(firebase.app().automaticDataCollectionEnabled, false);
6666
});
6767

68-
xit('apps can be deleted', async () => {
68+
xit('apps can be deleted', async function() {
6969
const name = `testscoreapp${FirebaseHelpers.id}`;
7070
const platformAppConfig = FirebaseHelpers.app.config();
7171
const newApp = await firebase.initializeApp(platformAppConfig, name);
@@ -85,14 +85,14 @@ describe('firebase -> X', () => {
8585
}).should.throw(`No Firebase App '${name}' has been created - call firebase.initializeApp()`);
8686
});
8787

88-
xit('prevents the default app from being deleted', async () => {
88+
xit('prevents the default app from being deleted', async function() {
8989
firebase
9090
.app()
9191
.delete()
9292
.should.be.rejectedWith('Unable to delete the default native firebase app instance.');
9393
});
9494

95-
it('extendApp should provide additional functionality', () => {
95+
it('extendApp should provide additional functionality', function() {
9696
const extension = {};
9797
firebase.app().extendApp({
9898
extension,

e2e/config.e2e.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,54 +15,54 @@
1515
*
1616
*/
1717

18-
describe('config', () => {
19-
describe('meta', () => {
20-
it('should read Info.plist/AndroidManifest.xml meta data', async () => {
18+
describe('config', function() {
19+
describe('meta', function() {
20+
it('should read Info.plist/AndroidManifest.xml meta data', async function() {
2121
const metaData = await NativeModules.RNFBAppModule.metaGetAll();
2222
metaData.rnfirebase_meta_testing_string.should.equal('abc');
2323
metaData.rnfirebase_meta_testing_boolean_false.should.equal(false);
2424
metaData.rnfirebase_meta_testing_boolean_true.should.equal(true);
2525
});
2626
});
2727

28-
describe('json', () => {
29-
xit('should read firebase.json data', async () => {
28+
describe('json', function() {
29+
xit('should read firebase.json data', async function() {
3030
const jsonData = await NativeModules.RNFBAppModule.jsonGetAll();
3131
jsonData.rnfirebase_json_testing_string.should.equal('abc');
3232
jsonData.rnfirebase_json_testing_boolean_false.should.equal(false);
3333
jsonData.rnfirebase_json_testing_boolean_true.should.equal(true);
3434
});
3535
});
3636

37-
describe('prefs', () => {
38-
beforeEach(async () => {
37+
describe('prefs', function() {
38+
beforeEach(async function() {
3939
await NativeModules.RNFBAppModule.preferencesClearAll();
4040
});
4141

4242
// NOTE: "preferencesClearAll" clears Firestore settings. Set DB as emulator again.
43-
after(async () => {
43+
after(async function() {
4444
await firebase
4545
.firestore()
4646
.settings({ host: 'localhost:8080', ssl: false, persistence: true });
4747
});
4848

49-
it('should set bool values', async () => {
49+
it('should set bool values', async function() {
5050
const prefsBefore = await NativeModules.RNFBAppModule.preferencesGetAll();
5151
should.equal(prefsBefore.invertase_oss, undefined);
5252
await NativeModules.RNFBAppModule.preferencesSetBool('invertase_oss', true);
5353
const prefsAfter = await NativeModules.RNFBAppModule.preferencesGetAll();
5454
prefsAfter.invertase_oss.should.equal(true);
5555
});
5656

57-
it('should set string values', async () => {
57+
it('should set string values', async function() {
5858
const prefsBefore = await NativeModules.RNFBAppModule.preferencesGetAll();
5959
should.equal(prefsBefore.invertase_oss, undefined);
6060
await NativeModules.RNFBAppModule.preferencesSetString('invertase_oss', 'invertase.io');
6161
const prefsAfter = await NativeModules.RNFBAppModule.preferencesGetAll();
6262
prefsAfter.invertase_oss.should.equal('invertase.io');
6363
});
6464

65-
it('should clear all values', async () => {
65+
it('should clear all values', async function() {
6666
await NativeModules.RNFBAppModule.preferencesSetString('invertase_oss', 'invertase.io');
6767
const prefsBefore = await NativeModules.RNFBAppModule.preferencesGetAll();
6868
prefsBefore.invertase_oss.should.equal('invertase.io');

e2e/events.e2e.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const eventBody = {
2121
foo: 'bar',
2222
};
2323

24-
describe('Core -> EventEmitter', () => {
25-
describe('ReactNativeFirebaseEventEmitter', () => {
26-
it('queues events before app is ready', async () => {
24+
describe('Core -> EventEmitter', function() {
25+
describe('ReactNativeFirebaseEventEmitter', function() {
26+
it('queues events before app is ready', async function() {
2727
const { eventsPing, eventsNotifyReady, eventsGetListeners } = NativeModules.RNFBAppModule;
2828
await eventsNotifyReady(false);
2929

@@ -57,7 +57,7 @@ describe('Core -> EventEmitter', () => {
5757
should.equal(nativeListenersAfter.events.pong, undefined);
5858
});
5959

60-
it('queues events before a js listener is registered', async () => {
60+
it('queues events before a js listener is registered', async function() {
6161
const {
6262
eventsPing,
6363
eventsNotifyReady,

e2e/utils.e2e.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@
1515
*
1616
*/
1717

18-
describe('utils()', () => {
19-
describe('namespace', () => {
20-
it('accessible from firebase.app()', () => {
18+
describe('utils()', function() {
19+
describe('namespace', function() {
20+
it('accessible from firebase.app()', function() {
2121
const app = firebase.app();
2222
should.exist(app.utils);
2323
app.utils().app.should.equal(app);
2424
});
2525
});
2626

27-
describe('isRunningInTestLab', () => {
28-
it('returns true or false', () => {
27+
describe('isRunningInTestLab', function() {
28+
it('returns true or false', function() {
2929
should.equal(firebase.utils().isRunningInTestLab, false);
3030
});
3131
});
3232

33-
describe('playServicesAvailability', () => {
34-
it('returns isAvailable and Play Service status', async () => {
33+
describe('playServicesAvailability', function() {
34+
it('returns isAvailable and Play Service status', async function() {
3535
const playService = await firebase.utils().playServicesAvailability;
3636
//iOS always returns { isAvailable: true, status: 0}
3737
should(playService.isAvailable).equal(true);
3838
should(playService.status).equal(0);
3939
});
4040
});
4141

42-
describe('getPlayServicesStatus', () => {
43-
it('returns isAvailable and Play Service status', async () => {
42+
describe('getPlayServicesStatus', function() {
43+
it('returns isAvailable and Play Service status', async function() {
4444
const status = await firebase.utils().getPlayServicesStatus();
4545
//iOS always returns { isAvailable: true, status: 0}
4646
should(status.isAvailable).equal(true);

e2e/utilsStatics.e2e.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*
1616
*/
1717

18-
describe('utils()', () => {
19-
describe('statics', () => {
20-
it('provides native path strings', () => {
18+
describe('utils()', function() {
19+
describe('statics', function() {
20+
it('provides native path strings', function() {
2121
firebase.utils.FilePath.should.be.an.Object();
2222
if (device.getPlatform() === 'ios') {
2323
firebase.utils.FilePath.MAIN_BUNDLE.should.be.a.String();

0 commit comments

Comments
 (0)