Skip to content

Commit 1d89482

Browse files
committed
Splitting
1 parent 075778a commit 1d89482

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,18 @@ describe('core/auth/auth_impl useEmulator', () => {
457457

458458
context('toJSON', () => {
459459
it('works when theres no current user', () => {
460-
expect(JSON.stringify(auth)).to.eq('{"apiKey":"test-api-key","authDomain":"localhost","appName":"test-app"}');
460+
expect(JSON.stringify(auth)).to.eq(
461+
'{"apiKey":"test-api-key","authDomain":"localhost","appName":"test-app"}'
462+
);
461463
});
462464

463465
it('also stringifies the current user', () => {
464-
auth.currentUser = {toJSON: (): object => ({foo: 'bar'})} as unknown as User;
465-
expect(JSON.stringify(auth)).to.eq('{"apiKey":"test-api-key","authDomain":"localhost","appName":"test-app","currentUser":{"foo":"bar"}}');
466+
auth.currentUser = ({
467+
toJSON: (): object => ({ foo: 'bar' })
468+
} as unknown) as User;
469+
expect(JSON.stringify(auth)).to.eq(
470+
'{"apiKey":"test-api-key","authDomain":"localhost",' + '"appName":"test-app","currentUser":{"foo":"bar"}}'
471+
);
466472
});
467473
});
468474
});

0 commit comments

Comments
 (0)