diff --git a/packages/firestore/__tests__/firestore.test.ts b/packages/firestore/__tests__/firestore.test.ts index 29f661fe9b..cf0fe7b5c3 100644 --- a/packages/firestore/__tests__/firestore.test.ts +++ b/packages/firestore/__tests__/firestore.test.ts @@ -679,11 +679,11 @@ describe('Firestore', function () { firestore1.settings({ persistence: true }); const indexManager = firestore1.persistentCacheIndexManager(); expect(indexManager).toBeDefined(); - expect(indexManager.constructor.name).toEqual('FirestorePersistentCacheIndexManager'); + expect(indexManager!.constructor.name).toEqual('FirestorePersistentCacheIndexManager'); - expect(indexManager.enableIndexAutoCreation).toBeInstanceOf(Function); - expect(indexManager.disableIndexAutoCreation).toBeInstanceOf(Function); - expect(indexManager.deleteAllIndexes).toBeInstanceOf(Function); + expect(indexManager!.enableIndexAutoCreation).toBeInstanceOf(Function); + expect(indexManager!.disableIndexAutoCreation).toBeInstanceOf(Function); + expect(indexManager!.deleteAllIndexes).toBeInstanceOf(Function); const firestore2 = firebase.firestore(); firestore2.settings({ persistence: false });