File tree 3 files changed +10
-3
lines changed
installations-compat/src/testing
remote-config-compat/test
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseApp } from '@firebase/app-compat' ;
19
+ import { _FirebaseAppInternal } from '@firebase/app-exp' ;
19
20
import { FirebaseInstallations } from '@firebase/installations-exp' ;
20
21
21
22
const appName = 'testApp' ;
@@ -37,7 +38,8 @@ export function getFakeApp(): FirebaseApp {
37
38
} ,
38
39
automaticDataCollectionEnabled : true ,
39
40
delete : async ( ) => { } ,
40
- installations : ( ( ) => null as unknown ) as any
41
+ installations : ( ( ) => null as unknown ) as any ,
42
+ _delegate : { } as _FirebaseAppInternal
41
43
} ;
42
44
}
43
45
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseApp } from '@firebase/app-compat' ;
19
+ import { _FirebaseAppInternal } from '@firebase/app-exp' ;
19
20
import { FirebaseMessaging } from '@firebase/messaging-exp' ;
20
21
21
22
export function getFakeApp ( ) : FirebaseApp {
@@ -32,7 +33,8 @@ export function getFakeApp(): FirebaseApp {
32
33
} ,
33
34
automaticDataCollectionEnabled : true ,
34
35
delete : async ( ) => { } ,
35
- messaging : ( ( ) => null as unknown ) as FirebaseApp [ 'messaging' ]
36
+ messaging : ( ( ) => null as unknown ) as FirebaseApp [ 'messaging' ] ,
37
+ _delegate : { } as _FirebaseAppInternal
36
38
} ;
37
39
}
38
40
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseApp } from '@firebase/app-compat' ;
19
+ import { _FirebaseAppInternal } from '@firebase/app-exp' ;
19
20
import { RemoteConfig } from '@firebase/remote-config-exp' ;
20
21
21
22
export function getFakeApp ( ) : FirebaseApp {
@@ -31,7 +32,9 @@ export function getFakeApp(): FirebaseApp {
31
32
appId : '1:777777777777:web:d93b5ca1475efe57'
32
33
} ,
33
34
automaticDataCollectionEnabled : true ,
34
- delete : async ( ) => { }
35
+ delete : async ( ) => { } ,
36
+ remoteConfig : ( ( ) => null as unknown ) as FirebaseApp [ 'remoteConfig' ] ,
37
+ _delegate : { } as _FirebaseAppInternal
35
38
} ;
36
39
}
37
40
You can’t perform that action at this time.
0 commit comments