@@ -31,6 +31,7 @@ import {
3131 apiDescribe ,
3232 arrayContainsAnyOp ,
3333 inOp ,
34+ shutdownDb ,
3435 withTestCollection ,
3536 withTestDb ,
3637 withTestDbs ,
@@ -1073,7 +1074,7 @@ apiDescribe('Database', (persistence: boolean) => {
10731074 it ( 'can start a new instance after shut down' , async ( ) => {
10741075 return withTestDoc ( persistence , async docRef => {
10751076 const firestore = docRef . firestore ;
1076- await ( firestore as any ) . _shutdown ( ) ;
1077+ await shutdownDb ( firestore ) ;
10771078
10781079 const newFirestore = firebase . firestore ! ( firestore . app ) ;
10791080 expect ( newFirestore ) . to . not . equal ( firestore ) ;
@@ -1092,14 +1093,15 @@ apiDescribe('Database', (persistence: boolean) => {
10921093 const app = docRef . firestore . app ;
10931094 await app . delete ( ) ;
10941095
1096+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10951097 expect ( ( docRef . firestore as any ) . _isShutdown ) . to . be . true ;
10961098 } ) ;
10971099 } ) ;
10981100
10991101 it ( 'new operation after shutdown should throw' , async ( ) => {
11001102 await withTestDoc ( persistence , async docRef => {
11011103 const firestore = docRef . firestore ;
1102- await ( firestore as any ) . _shutdown ( ) ;
1104+ await shutdownDb ( firestore ) ;
11031105
11041106 expect ( ( ) => {
11051107 firestore . doc ( docRef . path ) . set ( { foo : 'bar' } ) ;
@@ -1110,8 +1112,8 @@ apiDescribe('Database', (persistence: boolean) => {
11101112 it ( 'calling shutdown mutiple times should proceed' , async ( ) => {
11111113 await withTestDoc ( persistence , async docRef => {
11121114 const firestore = docRef . firestore ;
1113- await ( firestore as any ) . _shutdown ( ) ;
1114- await ( firestore as any ) . _shutdown ( ) ;
1115+ await shutdownDb ( firestore ) ;
1116+ await shutdownDb ( firestore ) ;
11151117
11161118 expect ( ( ) => {
11171119 firestore . doc ( docRef . path ) . set ( { foo : 'bar' } ) ;
0 commit comments