From ef8f42d66c5cdc110cc4c8f7d6e35617f2b817e8 Mon Sep 17 00:00:00 2001 From: Wu-Hui Date: Wed, 14 Aug 2019 14:14:12 -0400 Subject: [PATCH] [AUTOMATED]: Prettier Code Styling --- .../firestore/src/core/firestore_client.ts | 2 +- .../test/integration/api/database.test.ts | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/firestore/src/core/firestore_client.ts b/packages/firestore/src/core/firestore_client.ts index cbd0b596f5b..09d9642ad87 100644 --- a/packages/firestore/src/core/firestore_client.ts +++ b/packages/firestore/src/core/firestore_client.ts @@ -537,7 +537,7 @@ export class FirestoreClient { unlisten(listener: QueryListener): void { // Make unlisten a no-op if client is shut down. - if(this.clientShutdown) { + if (this.clientShutdown) { return; } this.asyncQueue.enqueueAndForget(() => { diff --git a/packages/firestore/test/integration/api/database.test.ts b/packages/firestore/test/integration/api/database.test.ts index f2e19b69ddc..207c527b436 100644 --- a/packages/firestore/test/integration/api/database.test.ts +++ b/packages/firestore/test/integration/api/database.test.ts @@ -1121,18 +1121,18 @@ apiDescribe('Database', (persistence: boolean) => { }); }); - it('can unlisten queries after shutdown', async () => { - return withTestDoc(persistence, async docRef => { - const firestore = docRef.firestore; - const accumulator = new EventsAccumulator(); - const unsubscribe = docRef.onSnapshot(accumulator.storeEvent); - await accumulator.awaitEvent(); - await shutdownDb(firestore); - - // This should proceed without error. - unsubscribe(); - // Multiple calls should proceed as well. - unsubscribe(); - }); + it('can unlisten queries after shutdown', async () => { + return withTestDoc(persistence, async docRef => { + const firestore = docRef.firestore; + const accumulator = new EventsAccumulator(); + const unsubscribe = docRef.onSnapshot(accumulator.storeEvent); + await accumulator.awaitEvent(); + await shutdownDb(firestore); + + // This should proceed without error. + unsubscribe(); + // Multiple calls should proceed as well. + unsubscribe(); + }); }); });