Skip to content

Commit ed5bcbc

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 56ec746 commit ed5bcbc

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

packages-exp/auth-exp/src/core/providers/auth_credential_impl.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
1918
import { AuthCredential } from '../../model/auth_credential';
2019
import { ProviderId, SignInMethod } from '.';
2120
import { IdTokenResponse } from '../../model/id_token';
@@ -25,22 +24,22 @@ import { Auth } from '../../model/auth';
2524
export class AuthCredentialImpl implements AuthCredential {
2625
constructor(
2726
readonly providerId: ProviderId,
28-
readonly signInMethod: SignInMethod,
27+
readonly signInMethod: SignInMethod
2928
) {}
3029

3130
toJSON(): object {
3231
throw new Error('Method not implemented.');
33-
};
34-
32+
}
33+
3534
_getIdTokenResponse(_auth: Auth): Promise<PhoneOrOauthTokenResponse> {
3635
throw new Error('Method not implemented.');
37-
};;
38-
36+
}
37+
3938
_linkToIdToken(_auth: Auth, _idToken: string): Promise<IdTokenResponse> {
4039
throw new Error('Method not implemented.');
41-
};;
42-
40+
}
41+
4342
_matchIdTokenWithUid(_auth: Auth, _uid: string): Promise<IdTokenResponse> {
4443
throw new Error('Method not implemented.');
45-
};;
44+
}
4645
}

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { UserCredentialImpl } from './user_credential_impl';
2828
use(chaiAsPromised);
2929

3030
describe('core/user/user_credential_impl', () => {
31-
describe("fromIdTokenResponse", () => {
31+
describe('fromIdTokenResponse', () => {
3232
const idTokenResponse: IdTokenResponse = {
3333
idToken: 'my-id-token',
3434
refreshToken: 'my-refresh-token',
@@ -43,10 +43,15 @@ describe('core/user/user_credential_impl', () => {
4343
);
4444

4545
it('should initialize a UserCredential', async () => {
46-
const userCredential = await UserCredentialImpl._fromIdTokenResponse(mockAuth, credential, OperationType.SIGN_IN, idTokenResponse);
46+
const userCredential = await UserCredentialImpl._fromIdTokenResponse(
47+
mockAuth,
48+
credential,
49+
OperationType.SIGN_IN,
50+
idTokenResponse
51+
);
4752
expect(userCredential.credential).to.eq(credential);
4853
expect(userCredential.operationType).to.eq(OperationType.SIGN_IN);
4954
expect(userCredential.user.uid).to.eq('my-uid');
50-
});
55+
});
5156
});
52-
});
57+
});

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ import { User } from '../../model/user';
2222
import { OperationType, UserCredential } from '../../model/user_credential';
2323
import { UserImpl } from './user_impl';
2424

25-
2625
export class UserCredentialImpl implements UserCredential {
2726
constructor(
2827
public readonly user: User,
2928
public readonly credential: AuthCredential | null,
3029
public readonly operationType: OperationType
31-
) { }
30+
) {}
3231

3332
static async _fromIdTokenResponse(
3433
auth: Auth,
@@ -44,4 +43,4 @@ export class UserCredentialImpl implements UserCredential {
4443
// updateAdditionalUserInfoFromIdTokenResponse(userCred, idTokenResponse);
4544
return userCred;
4645
}
47-
}
46+
}

packages-exp/auth-exp/src/model/auth_credential.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ export interface OAuthCredential extends AuthCredential {
3333
readonly idToken?: string;
3434
readonly accessToken?: string;
3535
readonly secret?: string;
36-
}
36+
}

packages-exp/auth-exp/src/model/user_credential.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export enum OperationType {
2525
}
2626

2727
export interface UserCredential {
28-
user: User,
29-
credential: AuthCredential | null,
28+
user: User;
29+
credential: AuthCredential | null;
3030
operationType: OperationType;
31-
}
31+
}

0 commit comments

Comments
 (0)