Skip to content

Commit 9798ef4

Browse files
Feiyang1hsubox76
authored andcommitted
[AUTOMATED]: Prettier Code Styling
1 parent 9797a95 commit 9798ef4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

packages/testing/test/database.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ before(() => {
2727
chai.use(chaiAsPromised);
2828
});
2929

30-
describe('Testing Module Tests', function () {
31-
it('assertSucceeds() iff success', async function () {
30+
describe('Testing Module Tests', function() {
31+
it('assertSucceeds() iff success', async function() {
3232
const success = Promise.resolve('success');
3333
const failure = Promise.reject('failure');
3434
await firebase.assertSucceeds(success).catch(() => {
@@ -39,24 +39,24 @@ describe('Testing Module Tests', function () {
3939
.then(() => {
4040
throw new Error('Expected failure to fail.');
4141
})
42-
.catch(() => { });
42+
.catch(() => {});
4343
});
4444

45-
it('assertFails() iff failure', async function () {
45+
it('assertFails() iff failure', async function() {
4646
const success = Promise.resolve('success');
4747
const failure = Promise.reject('failure');
4848
await firebase
4949
.assertFails(success)
5050
.then(() => {
5151
throw new Error('Expected success to fail.');
5252
})
53-
.catch(() => { });
53+
.catch(() => {});
5454
await firebase.assertFails(failure).catch(() => {
5555
throw new Error('Expected failure to succeed.');
5656
});
5757
});
5858

59-
it('initializeTestApp() with auth=null does not set access token', async function () {
59+
it('initializeTestApp() with auth=null does not set access token', async function() {
6060
const app = firebase.initializeTestApp({
6161
projectId: 'foo',
6262
auth: undefined
@@ -69,7 +69,7 @@ describe('Testing Module Tests', function () {
6969
expect(authInternal).to.be.null;
7070
});
7171

72-
it('initializeTestApp() with auth sets the correct access token', async function () {
72+
it('initializeTestApp() with auth sets the correct access token', async function() {
7373
const auth = { uid: 'alice' };
7474
const app = firebase.initializeTestApp({
7575
projectId: 'foo',
@@ -88,7 +88,7 @@ describe('Testing Module Tests', function () {
8888
expect(claims).to.deep.equal({ uid: auth.uid, iat: 0, sub: auth.uid });
8989
});
9090

91-
it('initializeAdminApp() sets the access token to "owner"', async function () {
91+
it('initializeAdminApp() sets the access token to "owner"', async function() {
9292
const app = firebase.initializeAdminApp({ projectId: 'foo' });
9393
const authInternal = ((app as unknown) as _FirebaseApp).container
9494
.getProvider('auth-internal')
@@ -99,7 +99,7 @@ describe('Testing Module Tests', function () {
9999
expect(token!.accessToken).to.be.string('owner');
100100
});
101101

102-
it('loadDatabaseRules() throws if no databaseName or rules', async function () {
102+
it('loadDatabaseRules() throws if no databaseName or rules', async function() {
103103
// eslint-disable-next-line @typescript-eslint/no-explicit-any
104104
await expect((firebase as any).loadDatabaseRules.bind(null, {})).to.throw(
105105
/databaseName not specified/
@@ -116,13 +116,13 @@ describe('Testing Module Tests', function () {
116116
).to.throw(/databaseName not specified/);
117117
});
118118

119-
it('loadDatabaseRules() tries to make a network request', async function () {
119+
it('loadDatabaseRules() tries to make a network request', async function() {
120120
await expect(
121121
firebase.loadDatabaseRules({ databaseName: 'foo', rules: '{}' })
122122
).to.be.rejectedWith(/ECONNREFUSED/);
123123
});
124124

125-
it('loadFirestoreRules() succeeds on valid input', async function () {
125+
it('loadFirestoreRules() succeeds on valid input', async function() {
126126
let promise = firebase.loadFirestoreRules({
127127
projectId: 'foo',
128128
rules: `service cloud.firestore {
@@ -134,28 +134,28 @@ describe('Testing Module Tests', function () {
134134
await expect(promise).to.be.rejectedWith(/UNAVAILABLE/);
135135
});
136136

137-
it('clearFirestoreData() succeeds on valid input', async function () {
137+
it('clearFirestoreData() succeeds on valid input', async function() {
138138
let promise = firebase.clearFirestoreData({
139139
projectId: 'foo'
140140
});
141141
await expect(promise).to.be.rejectedWith(/UNAVAILABLE/);
142142
});
143143

144-
it('apps() returns apps created with initializeTestApp', async function () {
144+
it('apps() returns apps created with initializeTestApp', async function() {
145145
const numApps = firebase.apps().length;
146146
await firebase.initializeTestApp({ databaseName: 'foo', auth: undefined });
147147
expect(firebase.apps().length).to.equal(numApps + 1);
148148
await firebase.initializeTestApp({ databaseName: 'bar', auth: undefined });
149149
expect(firebase.apps().length).to.equal(numApps + 2);
150150
});
151151

152-
it('there is a way to get database timestamps', function () {
152+
it('there is a way to get database timestamps', function() {
153153
expect(firebase.database.ServerValue.TIMESTAMP).to.deep.equal({
154154
'.sv': 'timestamp'
155155
});
156156
});
157157

158-
it('there is a way to get firestore timestamps', function () {
158+
it('there is a way to get firestore timestamps', function() {
159159
expect(firebase.firestore.FieldValue.serverTimestamp()).not.to.be.null;
160160
});
161161
});

0 commit comments

Comments
 (0)