Skip to content

Commit 4535e99

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent a559278 commit 4535e99

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

packages-exp/app-exp/src/api.test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ import {
3030
} from './api';
3131
import { DEFAULT_ENTRY_NAME } from './constants';
3232
import { FirebaseAppInternal } from '@firebase/app-types-exp';
33-
import { clearComponents, components, registerComponent, getProvider } from './internal';
33+
import {
34+
clearComponents,
35+
components,
36+
registerComponent,
37+
getProvider
38+
} from './internal';
3439
import { createTestComponent } from '../test/util';
3540
import { Component, ComponentType } from '@firebase/component';
3641
import { Logger } from '@firebase/logger';
@@ -44,7 +49,7 @@ declare module '@firebase/component' {
4449
describe('API tests', () => {
4550
afterEach(() => {
4651
for (const app of getApps()) {
47-
deleteApp(app).catch(() => { });
52+
deleteApp(app).catch(() => {});
4853
}
4954
});
5055

@@ -143,7 +148,7 @@ describe('API tests', () => {
143148
const app1 = initializeApp({});
144149
const app2 = initializeApp({}, 'App2');
145150

146-
deleteApp(app1).catch(() => { });
151+
deleteApp(app1).catch(() => {});
147152

148153
const apps = getApps();
149154

@@ -157,15 +162,15 @@ describe('API tests', () => {
157162
const app = initializeApp({});
158163
expect((app as FirebaseAppInternal).isDeleted).to.be.false;
159164

160-
await deleteApp(app).catch(() => { });
165+
await deleteApp(app).catch(() => {});
161166
expect((app as FirebaseAppInternal).isDeleted).to.be.true;
162167
});
163168

164169
it('removes App from the cache', () => {
165170
const app = initializeApp({});
166171
expect(getApps().length).to.equal(1);
167172

168-
deleteApp(app).catch(() => { });
173+
deleteApp(app).catch(() => {});
169174
expect(getApps().length).to.equal(0);
170175
});
171176
});
@@ -213,7 +218,6 @@ describe('API tests', () => {
213218

214219
describe('User Log Methods', () => {
215220
describe('Integration Tests', () => {
216-
217221
beforeEach(() => {
218222
clearComponents();
219223
});

packages-exp/app-exp/src/api.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ export function registerVersion(
256256
* @param logCallback An optional custom log handler that executes user code whenever
257257
* the Firebase SDK makes a logging call.
258258
*/
259-
export function onLog(logCallback: LogCallback | null, options?: LogOptions): void {
259+
export function onLog(
260+
logCallback: LogCallback | null,
261+
options?: LogOptions
262+
): void {
260263
if (logCallback !== null && typeof logCallback !== 'function') {
261264
throw ERROR_FACTORY.create(AppError.INVALID_LOG_ARGUMENT, {
262265
appName: name
@@ -276,4 +279,4 @@ export function setLogLevel(logLevel: LogLevel): void {
276279
setLogLevelImpl(logLevel);
277280
}
278281

279-
export { LogLevel } from '@firebase/logger';
282+
export { LogLevel } from '@firebase/logger';

packages-exp/app-exp/src/internal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Internal API tests', () => {
4848
const testComp = createTestComponent('test');
4949

5050
addComponent(app, testComp);
51-
51+
5252
expect(app.container.getProvider('test').getComponent()).to.equal(
5353
testComp
5454
);

packages-exp/app-exp/src/internal.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ export const components = new Map<string, Component<any>>();
2929
/**
3030
* @param component the component being added to this app's container
3131
*/
32-
export function addComponent(
33-
app: FirebaseApp,
34-
component: Component
35-
): void {
32+
export function addComponent(app: FirebaseApp, component: Component): void {
3633
try {
3734
(app as FirebaseAppInternal).container.addComponent(component);
3835
} catch (e) {

0 commit comments

Comments
 (0)