Skip to content

Commit 5c41f9b

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 27ba22c commit 5c41f9b

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

packages/messaging/test/controller-get-token.test.ts

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ describe('Firebase Messaging > *Controller.getToken()', () => {
234234
() => 'granted'
235235
);
236236

237-
stub(
238-
TokenDetailsModel.prototype,
239-
'getTokenDetailsFromSWScope'
240-
).callsFake(async () => EXAMPLE_TOKEN_DETAILS_CUSTOM_VAPID);
237+
stub(TokenDetailsModel.prototype, 'getTokenDetailsFromSWScope').callsFake(
238+
async () => EXAMPLE_TOKEN_DETAILS_CUSTOM_VAPID
239+
);
241240

242241
const serviceInstance = new serviceClass(firebaseInternalServices);
243242
const token = await serviceInstance.getToken();
@@ -255,10 +254,9 @@ describe('Firebase Messaging > *Controller.getToken()', () => {
255254
() => 'granted'
256255
);
257256

258-
stub(
259-
TokenDetailsModel.prototype,
260-
'getTokenDetailsFromSWScope'
261-
).callsFake(async () => EXAMPLE_EXPIRED_TOKEN_DETAILS);
257+
stub(TokenDetailsModel.prototype, 'getTokenDetailsFromSWScope').callsFake(
258+
async () => EXAMPLE_EXPIRED_TOKEN_DETAILS
259+
);
262260

263261
stub(serviceClass.prototype, 'getPublicVapidKey_').callsFake(() =>
264262
Promise.resolve(DEFAULT_PUBLIC_VAPID_KEY)
@@ -469,10 +467,9 @@ describe('Firebase Messaging > *Controller.getToken()', () => {
469467
'saveVapidDetails'
470468
).callsFake(async () => {});
471469

472-
stub(
473-
TokenDetailsModel.prototype,
474-
'getTokenDetailsFromSWScope'
475-
).callsFake(async () => EXAMPLE_TOKEN_DETAILS_DEFAULT_VAPID);
470+
stub(TokenDetailsModel.prototype, 'getTokenDetailsFromSWScope').callsFake(
471+
async () => EXAMPLE_TOKEN_DETAILS_DEFAULT_VAPID
472+
);
476473

477474
stub(serviceClass.prototype, 'getPushSubscription').callsFake(() =>
478475
Promise.resolve(subscription)
@@ -532,10 +529,9 @@ describe('Firebase Messaging > *Controller.getToken()', () => {
532529
() => 'granted'
533530
);
534531

535-
stub(
536-
TokenDetailsModel.prototype,
537-
'getTokenDetailsFromSWScope'
538-
).callsFake(async () => EXAMPLE_EXPIRED_TOKEN_DETAILS);
532+
stub(TokenDetailsModel.prototype, 'getTokenDetailsFromSWScope').callsFake(
533+
async () => EXAMPLE_EXPIRED_TOKEN_DETAILS
534+
);
539535

540536
stub(serviceClass.prototype, 'getPushSubscription').callsFake(() =>
541537
Promise.resolve(subscription)

packages/remote-config/test/client/rest_client.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ describe('RestClient', () => {
5454
});
5555

5656
describe('fetch', () => {
57-
let fetchStub: sinon.SinonStub<[RequestInfo, RequestInit?], Promise<Response>>;
57+
let fetchStub: sinon.SinonStub<
58+
[RequestInfo, RequestInit?],
59+
Promise<Response>
60+
>;
5861

5962
beforeEach(() => {
6063
fetchStub = sinon

packages/remote-config/test/remote_config.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,11 @@ describe('RemoteConfig', () => {
423423
});
424424

425425
describe('fetch', () => {
426-
let timeoutStub: sinon.SinonStub<[(...args: any[]) => void, number, ...any[]]>;
426+
let timeoutStub: sinon.SinonStub<[
427+
(...args: any[]) => void,
428+
number,
429+
...any[]
430+
]>;
427431
beforeEach(() => {
428432
client.fetch = sinon
429433
.stub()

0 commit comments

Comments
 (0)