@@ -329,7 +329,7 @@ describe('platform_browser/strategies/redirect', () => {
329
329
expect ( await promise ) . to . eq ( cred ) ;
330
330
} ) ;
331
331
332
- it ( 'returns the same value if called multiple times ' , async ( ) => {
332
+ it ( 'returns null after the first call ' , async ( ) => {
333
333
const cred = new UserCredentialImpl ( {
334
334
user : testUser ( auth , 'uid' ) ,
335
335
providerId : ProviderId . GOOGLE ,
@@ -341,7 +341,7 @@ describe('platform_browser/strategies/redirect', () => {
341
341
type : AuthEventType . SIGN_IN_VIA_REDIRECT
342
342
} ) ;
343
343
expect ( await promise ) . to . eq ( cred ) ;
344
- expect ( await getRedirectResult ( auth , resolver ) ) . to . eq ( cred ) ;
344
+ expect ( await getRedirectResult ( auth , resolver ) ) . to . be . null ;
345
345
} ) ;
346
346
347
347
it ( 'interacts with redirectUser loading from auth object' , async ( ) => {
@@ -405,7 +405,7 @@ describe('platform_browser/strategies/redirect', () => {
405
405
type : AuthEventType . REAUTH_VIA_REDIRECT
406
406
} ) ;
407
407
expect ( await promise ) . to . eq ( cred ) ;
408
- expect ( await getRedirectResult ( auth , resolver ) ) . to . eq ( cred ) ;
408
+ expect ( await getRedirectResult ( auth , resolver ) ) . to . be . null ;
409
409
} ) ;
410
410
411
411
it ( 'removes the redirect user and clears eventId from currentuser' , async ( ) => {
0 commit comments