Skip to content

Commit 4a3a125

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 34ae33a commit 4a3a125

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('core/user_impl', () => {
2424

2525
describe('constructor', () => {
2626
it('attaches required fields', () => {
27-
const user = new UserImpl({uid: 'uid', auth});
27+
const user = new UserImpl({ uid: 'uid', auth });
2828
expect(user.auth).to.eq(auth);
2929
expect(user.uid).to.eq('uid');
3030
});
@@ -36,7 +36,7 @@ describe('core/user_impl', () => {
3636
displayName: 'displayName',
3737
email: 'email',
3838
phoneNumber: 'phoneNumber',
39-
photoURL: 'photoURL',
39+
photoURL: 'photoURL'
4040
});
4141

4242
expect(user.displayName).to.eq('displayName');
@@ -46,7 +46,7 @@ describe('core/user_impl', () => {
4646
});
4747

4848
it('sets optional fields to null if not provided', () => {
49-
const user = new UserImpl({uid: 'uid', auth});
49+
const user = new UserImpl({ uid: 'uid', auth });
5050
expect(user.displayName).to.eq(null);
5151
expect(user.email).to.eq(null);
5252
expect(user.phoneNumber).to.eq(null);
@@ -56,29 +56,29 @@ describe('core/user_impl', () => {
5656

5757
describe('#getIdToken', () => {
5858
it('throws', () => {
59-
const user = new UserImpl({uid: 'uid', auth});
59+
const user = new UserImpl({ uid: 'uid', auth });
6060
expect(() => user.getIdToken()).to.throw();
6161
});
6262
});
6363

6464
describe('#getIdTokenResult', () => {
6565
it('throws', () => {
66-
const user = new UserImpl({uid: 'uid', auth});
66+
const user = new UserImpl({ uid: 'uid', auth });
6767
expect(() => user.getIdTokenResult()).to.throw();
6868
});
6969
});
7070

7171
describe('#reload', () => {
7272
it('throws', () => {
73-
const user = new UserImpl({uid: 'uid', auth});
73+
const user = new UserImpl({ uid: 'uid', auth });
7474
expect(() => user.reload()).to.throw();
7575
});
7676
});
7777

7878
describe('#delete', () => {
7979
it('throws', () => {
80-
const user = new UserImpl({uid: 'uid', auth});
80+
const user = new UserImpl({ uid: 'uid', auth });
8181
expect(() => user.delete()).to.throw();
8282
});
8383
});
84-
});
84+
});

packages-exp/auth-exp/src/core/user_impl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ProviderId } from './providers';
2323
export interface UserParameters {
2424
uid: string;
2525
auth: Auth;
26-
26+
2727
displayName?: string;
2828
email?: string;
2929
phoneNumber?: string;
@@ -43,7 +43,7 @@ export class UserImpl implements User {
4343
phoneNumber: string | null;
4444
photoURL: string | null;
4545

46-
constructor({uid, auth, ...opt}: UserParameters) {
46+
constructor({ uid, auth, ...opt }: UserParameters) {
4747
this.uid = uid;
4848
this.auth = auth;
4949
this.displayName = opt.displayName || null;
@@ -67,4 +67,4 @@ export class UserImpl implements User {
6767
delete(): Promise<void> {
6868
throw new Error('Method not implemented.');
6969
}
70-
}
70+
}

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

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

18-
import { IdTokenResult } from "./id_token";
19-
import { ProviderId } from "../core/providers";
18+
import { IdTokenResult } from './id_token';
19+
import { ProviderId } from '../core/providers';
2020

2121
export interface UserInfo {
2222
readonly uid: string;

packages-exp/auth-exp/test/mock_auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function mockAuth(name: AppName, apiKey: ApiKey): Auth {
2121
return {
2222
name,
2323
config: {
24-
apiKey,
24+
apiKey
2525
}
2626
};
27-
}
27+
}

0 commit comments

Comments
 (0)