Skip to content

Commit 225aded

Browse files
committed
Fix formatting and size-analysis
1 parent fffb80a commit 225aded

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

packages/app-check/src/client.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ import { BASE_ENDPOINT } from './constants';
3131

3232
describe('client', () => {
3333
let app: FirebaseApp;
34-
let fetchStub: SinonStub<[RequestInfo | URL, RequestInit?], Promise<Response>>;
34+
let fetchStub: SinonStub<
35+
[RequestInfo | URL, RequestInit?],
36+
Promise<Response>
37+
>;
3538
beforeEach(() => {
3639
app = getFakeApp();
3740
fetchStub = stub(window, 'fetch').returns(

packages/messaging/src/listeners/sw-listeners.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ describe('SwController', () => {
237237
if (!(Notification as unknown as NotificationExperimental).maxActions) {
238238
return;
239239
}
240-
stub((Notification as unknown as NotificationExperimental), 'maxActions').value(1);
240+
stub(
241+
Notification as unknown as NotificationExperimental,
242+
'maxActions'
243+
).value(1);
241244

242245
const warnStub = stub(console, 'warn');
243246

packages/performance/src/services/transport_service.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ import { SettingsService } from './settings_service';
2828
use(sinonChai);
2929

3030
describe('Firebase Performance > transport_service', () => {
31-
let fetchStub: SinonStub<[RequestInfo | URL, RequestInit?], Promise<Response>>;
31+
let fetchStub: SinonStub<
32+
[RequestInfo | URL, RequestInit?],
33+
Promise<Response>
34+
>;
3235
const INITIAL_SEND_TIME_DELAY_MS = 5.5 * 1000;
3336
const DEFAULT_SEND_INTERVAL_MS = 10 * 1000;
3437
const MAX_EVENT_COUNT_PER_REQUEST = 1000;

repo-scripts/size-analysis/package-analysis.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export async function analyzePackageSize(
118118
}
119119

120120
function mapWorkspaceToPackages(workspaces: string[]): Promise<string[]> {
121-
return Promise.all<string[]>(
122-
workspaces.map(
121+
return Promise.all<Promise<string[]>>(
122+
workspaces.map<Promise<string[]>>(
123123
workspace =>
124-
new Promise(resolve => {
124+
new Promise<string[]>(resolve => {
125125
glob(workspace, (err, paths) => {
126126
if (err) {
127127
throw err;

0 commit comments

Comments
 (0)