File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
packages-exp/auth-compat-exp/src Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,27 @@ describe('popup_redirect/CompatPopupRedirectResolver', () => {
134134 } ) ;
135135
136136 it ( 'returns true if cordova is false but browser value is true' , ( ) => {
137- sinon . stub ( exp . _getInstance < exp . PopupRedirectResolverInternal > ( exp . browserPopupRedirectResolver ) , '_shouldInitProactively' ) . value ( true ) ;
137+ sinon
138+ . stub (
139+ exp . _getInstance < exp . PopupRedirectResolverInternal > (
140+ exp . browserPopupRedirectResolver
141+ ) ,
142+ '_shouldInitProactively'
143+ )
144+ . value ( true ) ;
138145 sinon . stub ( platform , '_isLikelyCordova' ) . returns ( false ) ;
139146 expect ( compatResolver . _shouldInitProactively ) . to . be . true ;
140147 } ) ;
141148
142149 it ( 'returns false if not cordova and not browser early init' , ( ) => {
143- sinon . stub ( exp . _getInstance < exp . PopupRedirectResolverInternal > ( exp . browserPopupRedirectResolver ) , '_shouldInitProactively' ) . value ( false ) ;
150+ sinon
151+ . stub (
152+ exp . _getInstance < exp . PopupRedirectResolverInternal > (
153+ exp . browserPopupRedirectResolver
154+ ) ,
155+ '_shouldInitProactively'
156+ )
157+ . value ( false ) ;
144158 sinon . stub ( platform , '_isLikelyCordova' ) . returns ( false ) ;
145159 expect ( compatResolver . _shouldInitProactively ) . to . be . false ;
146160 } ) ;
Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ import * as exp from '@firebase/auth-exp/internal';
1919import { _isCordova , _isLikelyCordova } from './platform' ;
2020
2121const _assert : typeof exp . _assert = exp . _assert ;
22- const BROWSER_RESOLVER : exp . PopupRedirectResolverInternal = exp . _getInstance ( exp . browserPopupRedirectResolver ) ;
23- const CORDOVA_RESOLVER : exp . PopupRedirectResolverInternal = exp . _getInstance ( exp . cordovaPopupRedirectResolver ) ;
22+ const BROWSER_RESOLVER : exp . PopupRedirectResolverInternal = exp . _getInstance (
23+ exp . browserPopupRedirectResolver
24+ ) ;
25+ const CORDOVA_RESOLVER : exp . PopupRedirectResolverInternal = exp . _getInstance (
26+ exp . cordovaPopupRedirectResolver
27+ ) ;
2428
2529/** Platform-agnostic popup-redirect resolver */
2630export class CompatPopupRedirectResolver
You can’t perform that action at this time.
0 commit comments