Skip to content

Commit c263a72

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 510cf2c commit c263a72

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

packages-exp/auth-exp/src/core/auth/auth_impl.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ import { browserLocalPersistence } from '../persistence/browser';
3030
import { inMemoryPersistence } from '../persistence/in_memory';
3131
import { PersistenceUserManager } from '../persistence/persistence_user_manager';
3232
import { ClientPlatform, getClientVersion } from '../util/version';
33-
import { DEFAULT_API_HOST, DEFAULT_API_SCHEME, initializeAuth } from './auth_impl';
33+
import {
34+
DEFAULT_API_HOST,
35+
DEFAULT_API_SCHEME,
36+
initializeAuth
37+
} from './auth_impl';
3438

3539
use(sinonChai);
3640

packages-exp/auth-exp/src/core/user/reload.test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ import { mockEndpoint } from '../../../test/api/helper';
2626
import { testUser } from '../../../test/mock_auth';
2727
import * as fetch from '../../../test/mock_fetch';
2828
import { Endpoint } from '../../api';
29-
import { APIUserInfo, ProviderUserInfo } from '../../api/account_management/account';
29+
import {
30+
APIUserInfo,
31+
ProviderUserInfo
32+
} from '../../api/account_management/account';
3033
import { UserInfo } from '../../model/user';
3134
import { ProviderId } from '../providers';
3235
import { _reloadWithoutSaving, reload } from './reload';
@@ -152,7 +155,7 @@ describe('reload()', () => {
152155
providerUserInfo: [
153156
{
154157
...BASIC_USER_INFO,
155-
providerId: 'naaaah',
158+
providerId: 'naaaah'
156159
}
157160
]
158161
}

packages-exp/auth-exp/src/core/user/reload.ts

+13-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { getAccountInfo, ProviderUserInfo } from '../../api/account_management/account';
18+
import {
19+
getAccountInfo,
20+
ProviderUserInfo
21+
} from '../../api/account_management/account';
1922
import { User, UserInfo } from '../../model/user';
2023
import { ProviderId } from '../providers';
2124
import { assert } from '../util/assert';
@@ -68,9 +71,15 @@ function mergeProviderData(
6871
return [...deduped, ...newData];
6972
}
7073

71-
function extractProviderData(providers: ProviderUserInfo[], appName: string): UserInfo[] {
72-
return providers.map(({providerId, ...provider}) => {
73-
assert(providerId && Object.values<string>(ProviderId).includes(providerId), appName);
74+
function extractProviderData(
75+
providers: ProviderUserInfo[],
76+
appName: string
77+
): UserInfo[] {
78+
return providers.map(({ providerId, ...provider }) => {
79+
assert(
80+
providerId && Object.values<string>(ProviderId).includes(providerId),
81+
appName
82+
);
7483
return {
7584
uid: provider.rawId || '',
7685
displayName: provider.displayName || null,

0 commit comments

Comments
 (0)