Skip to content

Commit 8ca7c35

Browse files
committed
Run format
1 parent f935658 commit 8ca7c35

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

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

+14-6
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ use(sinonChai);
2929

3030
/* eslint-disable no-restricted-properties */
3131
describe('Firebase Performance > transport_service', () => {
32-
let sendBeaconStub: SinonStub<[url: string | URL, data?: BodyInit | null | undefined], boolean>;
33-
let fetchStub: SinonStub<[RequestInfo | URL, RequestInit?], Promise<Response>>;
32+
let sendBeaconStub: SinonStub<
33+
[url: string | URL, data?: BodyInit | null | undefined],
34+
boolean
35+
>;
36+
let fetchStub: SinonStub<
37+
[RequestInfo | URL, RequestInit?],
38+
Promise<Response>
39+
>;
3440
const INITIAL_SEND_TIME_DELAY_MS = 5.5 * 1000;
3541
const DEFAULT_SEND_INTERVAL_MS = 10 * 1000;
3642
const MAX_EVENT_COUNT_PER_REQUEST = 1000;
@@ -130,10 +136,12 @@ describe('Firebase Performance > transport_service', () => {
130136

131137
it('falls back to fetch if sendBeacon fails.', async () => {
132138
sendBeaconStub.returns(false);
133-
fetchStub.resolves(new Response('{}', {
134-
status: 200,
135-
headers: { 'Content-type': 'application/json' }
136-
}));
139+
fetchStub.resolves(
140+
new Response('{}', {
141+
status: 200,
142+
headers: { 'Content-type': 'application/json' }
143+
})
144+
);
137145
testTransportHandler('event1');
138146
clock.tick(INITIAL_SEND_TIME_DELAY_MS);
139147
expect(fetchStub).to.have.been.calledOnce;

0 commit comments

Comments
 (0)