Skip to content

Commit 54c4692

Browse files
committed
Cast _delegate to any in fake test apps
1 parent 87f5c47 commit 54c4692

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

packages-exp/installations-compat/src/testing/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { _FirebaseAppInternal } from '@firebase/app-exp';
2019
import { FirebaseInstallations } from '@firebase/installations-exp';
2120

2221
const appName = 'testApp';
@@ -39,7 +38,7 @@ export function getFakeApp(): FirebaseApp {
3938
automaticDataCollectionEnabled: true,
4039
delete: async () => {},
4140
installations: (() => null as unknown) as any,
42-
_delegate: {} as _FirebaseAppInternal
41+
_delegate: {} as any
4342
};
4443
}
4544

packages-exp/messaging-compat/test/fakes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { _FirebaseAppInternal } from '@firebase/app-exp';
2019
import { FirebaseMessaging } from '@firebase/messaging-exp';
2120

2221
export function getFakeApp(): FirebaseApp {
@@ -34,7 +33,7 @@ export function getFakeApp(): FirebaseApp {
3433
automaticDataCollectionEnabled: true,
3534
delete: async () => {},
3635
messaging: (() => null as unknown) as FirebaseApp['messaging'],
37-
_delegate: {} as _FirebaseAppInternal
36+
_delegate: {} as any
3837
};
3938
}
4039

packages-exp/performance-compat/test/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { _FirebaseAppInternal } from '@firebase/app-exp';
2019
import {
2120
FirebasePerformance,
2221
PerformanceTrace
@@ -36,7 +35,7 @@ export function getFakeApp(): FirebaseApp {
3635
},
3736
automaticDataCollectionEnabled: true,
3837
delete: async () => {},
39-
_delegate: {} as _FirebaseAppInternal
38+
_delegate: {} as any
4039
};
4140
}
4241

packages-exp/remote-config-compat/test/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { _FirebaseAppInternal } from '@firebase/app-exp';
2019
import { RemoteConfig } from '@firebase/remote-config-exp';
2120

2221
export function getFakeApp(): FirebaseApp {
@@ -34,7 +33,7 @@ export function getFakeApp(): FirebaseApp {
3433
automaticDataCollectionEnabled: true,
3534
delete: async () => {},
3635
remoteConfig: (() => null as unknown) as FirebaseApp['remoteConfig'],
37-
_delegate: {} as _FirebaseAppInternal
36+
_delegate: {} as any
3837
};
3938
}
4039

0 commit comments

Comments
 (0)