File tree 1 file changed +2
-14
lines changed
packages/auth/test/helpers/integration
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,7 @@ import { Auth, User } from '../../../src/model/public_types';
22
22
import { getAuth , connectAuthEmulator } from '../../../' ; // Use browser OR node dist entrypoint depending on test env.
23
23
import { _generateEventId } from '../../../src/core/util/event_id' ;
24
24
import { getAppConfig , getEmulatorUrl } from './settings' ;
25
- import {
26
- getOobCodes ,
27
- OobCodeSession ,
28
- resetEmulator
29
- } from './emulator_rest_helpers' ;
25
+ import { resetEmulator } from './emulator_rest_helpers' ;
30
26
import totp from 'totp-generator' ;
31
27
interface IntegrationTestAuth extends Auth {
32
28
cleanUp ( ) : Promise < void > ;
@@ -87,10 +83,7 @@ export async function cleanUpTestInstance(
87
83
tests ?: string
88
84
) : Promise < void > {
89
85
await auth . signOut ( ) ;
90
-
91
- if ( typeof tests === 'undefined' ) {
92
- await ( auth as IntegrationTestAuth ) . cleanUp ( ) ;
93
- }
86
+ await ( auth as IntegrationTestAuth ) . cleanUp ( ) ;
94
87
}
95
88
96
89
function stubConsoleToSilenceEmulatorWarnings ( ) : sinon . SinonStub {
@@ -106,11 +99,6 @@ function stubConsoleToSilenceEmulatorWarnings(): sinon.SinonStub {
106
99
} ) ;
107
100
}
108
101
109
- export async function code ( toEmail : string ) : Promise < OobCodeSession > {
110
- const codes = await getOobCodes ( ) ;
111
- return codes . reverse ( ) . find ( ( { email } ) => email === toEmail ) ! ;
112
- }
113
-
114
102
export function getTotpCode (
115
103
sharedSecretKey : string ,
116
104
periodSec : number ,
You can’t perform that action at this time.
0 commit comments