Skip to content

Commit e1913e3

Browse files
committed
format
1 parent 6f4f745 commit e1913e3

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

packages/installations/src/api/get-id-server-app.test.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,27 @@
1717

1818
import { expect } from 'chai';
1919
import { getId } from './get-id';
20-
import { FAKE_INSTALLATIONS_ID, getFakeInstallations, getFakeServerApp } from '../testing/fake-generators';
20+
import {
21+
FAKE_INSTALLATIONS_ID,
22+
getFakeInstallations,
23+
getFakeServerApp
24+
} from '../testing/fake-generators';
2125

2226
describe('getId-serverapp', () => {
23-
it('getId with firebaseServerApp with authIdToken returns valid id', async() => {
24-
const installationsAuthToken = "fakeToken";
27+
it('getId with firebaseServerApp with authIdToken returns valid id', async () => {
28+
const installationsAuthToken = 'fakeToken';
2529
const serverApp = getFakeServerApp(installationsAuthToken);
2630
const installations = getFakeInstallations(serverApp);
2731
const fid = await getId(installations);
2832
expect(fid).to.equal(FAKE_INSTALLATIONS_ID);
2933
});
30-
it('getId with firebaseServerApp without authIdToken throws', async() => {
34+
it('getId with firebaseServerApp without authIdToken throws', async () => {
3135
const serverApp = getFakeServerApp();
3236
const installations = getFakeInstallations(serverApp);
3337
let fails = false;
3438
try {
3539
await getId(installations);
36-
} catch (e) {
40+
} catch (e) {
3741
console.error(e);
3842
fails = true;
3943
}

packages/installations/src/api/get-token-server-app.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717

1818
import { expect, use } from 'chai';
1919
import { getToken } from './get-token';
20-
import { getFakeInstallations, getFakeServerApp } from '../testing/fake-generators';
20+
import {
21+
getFakeInstallations,
22+
getFakeServerApp
23+
} from '../testing/fake-generators';
2124
import chaiAsPromised from 'chai-as-promised';
2225

2326
use(chaiAsPromised);
2427

2528
describe('getToken-serverapp', () => {
2629
it('getToken with firebaseServerApp with authIdToken returns valid token', async () => {
27-
const installationsAuthToken = "fakeToken.abc123";
30+
const installationsAuthToken = 'fakeToken';
2831
const serverApp = getFakeServerApp(installationsAuthToken);
2932
const installations = getFakeInstallations(serverApp);
3033
const token = await getToken(installations);
@@ -36,7 +39,7 @@ describe('getToken-serverapp', () => {
3639
let fails = false;
3740
try {
3841
await getToken(installations);
39-
} catch (e) {
42+
} catch (e) {
4043
fails = true;
4144
}
4245
expect(fails).to.be.true;

0 commit comments

Comments
 (0)