Skip to content

Commit 4bc9bdd

Browse files
committed
format
1 parent 8fc6c33 commit 4bc9bdd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/firestore/test/integration/api/database.test.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ apiDescribe('Database', persistence => {
11981198
onSnapshot(docA, () => deferred2.resolve());
11991199
});
12001200
});
1201-
return Promise.all([deferred1.promise, deferred2.promise]).then(() => { });
1201+
return Promise.all([deferred1.promise, deferred2.promise]).then(() => {});
12021202
});
12031203
});
12041204

@@ -1349,7 +1349,7 @@ apiDescribe('Database', persistence => {
13491349
it('QuerySnapshot multiple events for snapshot created by a bundle', function (done) {
13501350
this.timeout(SNAPSHOT_TEST_TIMEOUT);
13511351
const testDocs = {
1352-
a: { foo: 0 },
1352+
a: { foo: 0 }
13531353
};
13541354
void withTestCollection(persistence, testDocs, async (coll, db) => {
13551355
const q = query(coll, orderBy(documentId()));
@@ -1421,7 +1421,7 @@ apiDescribe('Database', persistence => {
14211421
const queryForRejection = collection(db, 'a/__badpath__/b');
14221422
onSnapshot(
14231423
queryForRejection,
1424-
() => { },
1424+
() => {},
14251425
(err: Error) => {
14261426
expect(err.name).to.exist;
14271427
expect(err.message).to.exist;
@@ -1438,13 +1438,13 @@ apiDescribe('Database', persistence => {
14381438
const queryForRejection = collection(db, 'a/__badpath__/b');
14391439
onSnapshot(
14401440
queryForRejection,
1441-
() => { },
1441+
() => {},
14421442
(err: Error) => {
14431443
expect(err.name).to.exist;
14441444
expect(err.message).to.exist;
14451445
onSnapshot(
14461446
queryForRejection,
1447-
() => { },
1447+
() => {},
14481448
(err2: Error) => {
14491449
expect(err2.name).to.exist;
14501450
expect(err2.message).to.exist;
@@ -1859,7 +1859,7 @@ apiDescribe('Database', persistence => {
18591859
it('can query after firestore restart', async () => {
18601860
return withTestDoc(persistence, async (docRef, firestore) => {
18611861
const deferred: Deferred<FirestoreError> = new Deferred();
1862-
const unsubscribe = onSnapshot(docRef, snapshot => { }, deferred.resolve);
1862+
const unsubscribe = onSnapshot(docRef, snapshot => {}, deferred.resolve);
18631863

18641864
await firestore._restart();
18651865

@@ -1879,7 +1879,7 @@ apiDescribe('Database', persistence => {
18791879
it('query listener throws error on termination', async () => {
18801880
return withTestDoc(persistence, async (docRef, firestore) => {
18811881
const deferred: Deferred<FirestoreError> = new Deferred();
1882-
const unsubscribe = onSnapshot(docRef, snapshot => { }, deferred.resolve);
1882+
const unsubscribe = onSnapshot(docRef, snapshot => {}, deferred.resolve);
18831883

18841884
await terminate(firestore);
18851885

@@ -1926,7 +1926,7 @@ apiDescribe('Database', persistence => {
19261926
readonly title: string,
19271927
readonly author: string,
19281928
readonly ref: DocumentReference | null = null
1929-
) { }
1929+
) {}
19301930
byline(): string {
19311931
return this.title + ', by ' + this.author;
19321932
}
@@ -2056,8 +2056,8 @@ apiDescribe('Database', persistence => {
20562056
batch.set(ref, { title: 'olive' }, { merge: true })
20572057
).to.throw(
20582058
'Function WriteBatch.set() called with invalid ' +
2059-
'data (via `toFirestore()`). Unsupported field value: undefined ' +
2060-
'(found in field author in document posts/some-post)'
2059+
'data (via `toFirestore()`). Unsupported field value: undefined ' +
2060+
'(found in field author in document posts/some-post)'
20612061
);
20622062
});
20632063
});

0 commit comments

Comments
 (0)