Skip to content

Commit 79d76ff

Browse files
test(firestore): fix jest tests (#8257)
1 parent 9c6f607 commit 79d76ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/firestore/__tests__/firestore.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@ describe('Firestore', function () {
679679
firestore1.settings({ persistence: true });
680680
const indexManager = firestore1.persistentCacheIndexManager();
681681
expect(indexManager).toBeDefined();
682-
expect(indexManager.constructor.name).toEqual('FirestorePersistentCacheIndexManager');
682+
expect(indexManager!.constructor.name).toEqual('FirestorePersistentCacheIndexManager');
683683

684-
expect(indexManager.enableIndexAutoCreation).toBeInstanceOf(Function);
685-
expect(indexManager.disableIndexAutoCreation).toBeInstanceOf(Function);
686-
expect(indexManager.deleteAllIndexes).toBeInstanceOf(Function);
684+
expect(indexManager!.enableIndexAutoCreation).toBeInstanceOf(Function);
685+
expect(indexManager!.disableIndexAutoCreation).toBeInstanceOf(Function);
686+
expect(indexManager!.deleteAllIndexes).toBeInstanceOf(Function);
687687

688688
const firestore2 = firebase.firestore();
689689
firestore2.settings({ persistence: false });

0 commit comments

Comments
 (0)