From e1913e38c822eb04cc0a11bf33d35bad71cdd3e4 Mon Sep 17 00:00:00 2001 From: DellaBitta Date: Mon, 4 Nov 2024 14:16:46 -0500 Subject: [PATCH] format --- .../src/api/get-id-server-app.test.ts | 14 +++++++++----- .../src/api/get-token-server-app.test.ts | 9 ++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/installations/src/api/get-id-server-app.test.ts b/packages/installations/src/api/get-id-server-app.test.ts index d16275b29f4..b29b018eff6 100644 --- a/packages/installations/src/api/get-id-server-app.test.ts +++ b/packages/installations/src/api/get-id-server-app.test.ts @@ -17,23 +17,27 @@ import { expect } from 'chai'; import { getId } from './get-id'; -import { FAKE_INSTALLATIONS_ID, getFakeInstallations, getFakeServerApp } from '../testing/fake-generators'; +import { + FAKE_INSTALLATIONS_ID, + getFakeInstallations, + getFakeServerApp +} from '../testing/fake-generators'; describe('getId-serverapp', () => { - it('getId with firebaseServerApp with authIdToken returns valid id', async() => { - const installationsAuthToken = "fakeToken"; + it('getId with firebaseServerApp with authIdToken returns valid id', async () => { + const installationsAuthToken = 'fakeToken'; const serverApp = getFakeServerApp(installationsAuthToken); const installations = getFakeInstallations(serverApp); const fid = await getId(installations); expect(fid).to.equal(FAKE_INSTALLATIONS_ID); }); - it('getId with firebaseServerApp without authIdToken throws', async() => { + it('getId with firebaseServerApp without authIdToken throws', async () => { const serverApp = getFakeServerApp(); const installations = getFakeInstallations(serverApp); let fails = false; try { await getId(installations); - } catch (e) { + } catch (e) { console.error(e); fails = true; } diff --git a/packages/installations/src/api/get-token-server-app.test.ts b/packages/installations/src/api/get-token-server-app.test.ts index 33b3a4d3aed..d4d8b3ffa35 100644 --- a/packages/installations/src/api/get-token-server-app.test.ts +++ b/packages/installations/src/api/get-token-server-app.test.ts @@ -17,14 +17,17 @@ import { expect, use } from 'chai'; import { getToken } from './get-token'; -import { getFakeInstallations, getFakeServerApp } from '../testing/fake-generators'; +import { + getFakeInstallations, + getFakeServerApp +} from '../testing/fake-generators'; import chaiAsPromised from 'chai-as-promised'; use(chaiAsPromised); describe('getToken-serverapp', () => { it('getToken with firebaseServerApp with authIdToken returns valid token', async () => { - const installationsAuthToken = "fakeToken.abc123"; + const installationsAuthToken = 'fakeToken'; const serverApp = getFakeServerApp(installationsAuthToken); const installations = getFakeInstallations(serverApp); const token = await getToken(installations); @@ -36,7 +39,7 @@ describe('getToken-serverapp', () => { let fails = false; try { await getToken(installations); - } catch (e) { + } catch (e) { fails = true; } expect(fails).to.be.true;