@@ -213,7 +213,7 @@ describe('core/mfa/totp/assertions/TotpMultiFactorAssertionImpl', () => {
213
213
} ) ;
214
214
} ) ;
215
215
216
- describe ( 'Testing signIn Flow' , ( ) => {
216
+ describe ( 'Testing signin Flow' , ( ) => {
217
217
let auth : TestAuth ;
218
218
let assertion : MultiFactorAssertionImpl ;
219
219
let totpSignInResponse : StartTotpMfaSignInResponse ;
@@ -228,7 +228,12 @@ describe('Testing signIn Flow', () => {
228
228
afterEach ( mockFetch . tearDown ) ;
229
229
230
230
it ( 'should finalize mfa signin for totp' , async ( ) => {
231
- totpSignInResponse = { 'verificationCode' : '123456' } as any ;
231
+
232
+ totpSignInResponse = {
233
+ verificationCode : '123456' ,
234
+ idToken : 'final-id-token' ,
235
+ refreshToken : 'refresh-token'
236
+ } as any ;
232
237
assertion = TotpMultiFactorGenerator . assertionForSignIn (
233
238
'enrollment-id' ,
234
239
'123456'
@@ -254,7 +259,11 @@ describe('Testing signIn Flow', () => {
254
259
255
260
it ( 'should throw Firebase Error if enrollment-id is undefined' , async ( ) => {
256
261
let _response : FinalizeMfaResponse ;
257
- totpSignInResponse = { 'verificationCode' : '123456' } as any ;
262
+ totpSignInResponse = {
263
+ verificationCode : '123456' ,
264
+ idToken : 'final-id-token' ,
265
+ refreshToken : 'refresh-token'
266
+ } as any ;
258
267
assertion = TotpMultiFactorGenerator . assertionForSignIn (
259
268
undefined as any ,
260
269
'123456'
@@ -270,7 +279,11 @@ describe('Testing signIn Flow', () => {
270
279
271
280
it ( 'should throw Firebase Error if otp is undefined' , async ( ) => {
272
281
let _response : FinalizeMfaResponse ;
273
- totpSignInResponse = { 'verificationCode' : '123456' } as any ;
282
+ totpSignInResponse = {
283
+ verificationCode : '123456' ,
284
+ idToken : 'final-id-token' ,
285
+ refreshToken : 'refresh-token'
286
+ } as any ;
274
287
assertion = TotpMultiFactorGenerator . assertionForSignIn (
275
288
'enrollment-id' ,
276
289
undefined as any
0 commit comments