Skip to content

Commit e13f83e

Browse files
committed
reverting unwanted changes in helper.ts
1 parent 10aa3f1 commit e13f83e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

packages/auth/test/helpers/integration/helpers.ts

+2-14
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ import { Auth, User } from '../../../src/model/public_types';
2222
import { getAuth, connectAuthEmulator } from '../../../'; // Use browser OR node dist entrypoint depending on test env.
2323
import { _generateEventId } from '../../../src/core/util/event_id';
2424
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';
3026
import totp from 'totp-generator';
3127
interface IntegrationTestAuth extends Auth {
3228
cleanUp(): Promise<void>;
@@ -87,10 +83,7 @@ export async function cleanUpTestInstance(
8783
tests?: string
8884
): Promise<void> {
8985
await auth.signOut();
90-
91-
if (typeof tests === 'undefined') {
92-
await (auth as IntegrationTestAuth).cleanUp();
93-
}
86+
await (auth as IntegrationTestAuth).cleanUp();
9487
}
9588

9689
function stubConsoleToSilenceEmulatorWarnings(): sinon.SinonStub {
@@ -106,11 +99,6 @@ function stubConsoleToSilenceEmulatorWarnings(): sinon.SinonStub {
10699
});
107100
}
108101

109-
export async function code(toEmail: string): Promise<OobCodeSession> {
110-
const codes = await getOobCodes();
111-
return codes.reverse().find(({ email }) => email === toEmail)!;
112-
}
113-
114102
export function getTotpCode(
115103
sharedSecretKey: string,
116104
periodSec: number,

0 commit comments

Comments
 (0)