Skip to content

Commit d5e81dc

Browse files
committed
Formatting
1 parent d0ca061 commit d5e81dc

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

packages-exp/auth-compat-exp/src/popup_redirect.test.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

packages-exp/auth-compat-exp/src/popup_redirect.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ import * as exp from '@firebase/auth-exp/internal';
1919
import { _isCordova, _isLikelyCordova } from './platform';
2020

2121
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+
);
2428

2529
/** Platform-agnostic popup-redirect resolver */
2630
export class CompatPopupRedirectResolver

0 commit comments

Comments
 (0)