@@ -14,6 +14,8 @@ import {
14
14
CheckV9DeprecationFunction ,
15
15
} from '../../app/lib/common/unitTestUtils' ;
16
16
17
+ import { getApp } from '../../app' ;
18
+
17
19
// @ts -ignore test
18
20
import FirebaseModule from '../../app/lib/internal/FirebaseModule' ;
19
21
@@ -120,7 +122,7 @@ describe('Cloud Functions', function () {
120
122
121
123
describe ( 'Cloud Functions' , function ( ) {
122
124
it ( 'useFunctionsEmulator()' , function ( ) {
123
- const app = firebase . app ( ) ;
125
+ const app = getApp ( ) ;
124
126
const functions = app . functions ( ) ;
125
127
functionsRefV9Deprecation (
126
128
( ) => connectFunctionsEmulator ( functions , 'localhost' , 8080 ) ,
@@ -130,7 +132,7 @@ describe('Cloud Functions', function () {
130
132
} ) ;
131
133
132
134
it ( 'httpsCallable()' , function ( ) {
133
- const app = firebase . app ( ) ;
135
+ const app = getApp ( ) ;
134
136
const functions = app . functions ( ) ;
135
137
functionsRefV9Deprecation (
136
138
( ) => httpsCallable ( functions , 'example' ) ,
@@ -140,7 +142,7 @@ describe('Cloud Functions', function () {
140
142
} ) ;
141
143
142
144
it ( 'httpsCallableFromUrl()' , function ( ) {
143
- const app = firebase . app ( ) ;
145
+ const app = getApp ( ) ;
144
146
const functions = app . functions ( ) ;
145
147
functionsRefV9Deprecation (
146
148
( ) => httpsCallableFromUrl ( functions , 'https://example.com/example' ) ,
0 commit comments