File tree 2 files changed +22
-4
lines changed
packages-exp/auth-compat-exp/src
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', () => {
134
134
} ) ;
135
135
136
136
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 ) ;
138
145
sinon . stub ( platform , '_isLikelyCordova' ) . returns ( false ) ;
139
146
expect ( compatResolver . _shouldInitProactively ) . to . be . true ;
140
147
} ) ;
141
148
142
149
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 ) ;
144
158
sinon . stub ( platform , '_isLikelyCordova' ) . returns ( false ) ;
145
159
expect ( compatResolver . _shouldInitProactively ) . to . be . false ;
146
160
} ) ;
Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ import * as exp from '@firebase/auth-exp/internal';
19
19
import { _isCordova , _isLikelyCordova } from './platform' ;
20
20
21
21
const _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
+ ) ;
24
28
25
29
/** Platform-agnostic popup-redirect resolver */
26
30
export class CompatPopupRedirectResolver
You can’t perform that action at this time.
0 commit comments