Skip to content

Commit 237ef29

Browse files
Fix test
1 parent ec48a6b commit 237ef29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/src/api/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class Firestore
561561

562562
INTERNAL = {
563563
delete: async (): Promise<void> => {
564-
if (this._firestoreClient) {
564+
if (!this._firestoreClient) {
565565
// The client must be initialized to ensure that all subsequent API
566566
// usage throws an exception.
567567
configureFirestore(this);
@@ -648,7 +648,7 @@ export function configureFirestore(firestore: FirestoreCompat): void {
648648
debugAssert(!!settings.host, 'FirestoreSettings.host is not set');
649649
debugAssert(
650650
!firestore._firestoreClient,
651-
'configureFirestoreClient() called multiple times'
651+
'configureFirestore() called multiple times'
652652
);
653653

654654
const databaseInfo = new DatabaseInfo(

0 commit comments

Comments
 (0)