File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/auth/test/helpers/integration Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,14 @@ export function getTestInstance(requireEmulator = false): Auth {
81
81
}
82
82
83
83
export function getTestInstanceForServerApp (
84
- serverApp : FirebaseServerApp ,
85
- requireEmulator = false
84
+ serverApp : FirebaseServerApp
86
85
) : Auth {
87
86
const auth = getAuth ( serverApp ) as IntegrationTestAuth ;
88
87
auth . settings . appVerificationDisabledForTesting = true ;
89
88
const emulatorUrl = getEmulatorUrl ( ) ;
90
89
91
90
if ( emulatorUrl ) {
92
91
connectAuthEmulator ( auth , emulatorUrl , { disableWarnings : true } ) ;
93
- } else if ( requireEmulator ) {
94
- /* Emulator wasn't configured but test must use emulator */
95
- throw new Error ( 'Test may only be run using the Auth Emulator!' ) ;
96
92
}
97
93
98
94
// Don't track created users on the created Auth instance like we do for Auth objects created in
You can’t perform that action at this time.
0 commit comments