From e584035b40b4cc8d091f87632b40490eb84a6fb4 Mon Sep 17 00:00:00 2001 From: Mike Pih Date: Thu, 19 Sep 2024 16:37:05 -0700 Subject: [PATCH] prettier --- jest.config.ts | 5 +---- src/client.test.ts | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index b99dc1f..d9ac9c3 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -6,10 +6,7 @@ const config: Config = { restoreMocks: true, testEnvironment: 'node', transform: { - '^.+\\.ts$': [ - 'ts-jest', - { diagnostics: { ignoreCodes: ['TS151001'] } } - ], + '^.+\\.ts$': ['ts-jest', { diagnostics: { ignoreCodes: ['TS151001'] } }], }, }; diff --git a/src/client.test.ts b/src/client.test.ts index 0e8ddc3..bdea971 100644 --- a/src/client.test.ts +++ b/src/client.test.ts @@ -178,7 +178,9 @@ describe('Client', () => { const client = new Client('id', 'key'); mock.onGet('/products/:count').reply((config) => { - const headers = Object.fromEntries(Object.entries(config.headers || {})); + const headers = Object.fromEntries( + Object.entries(config.headers || {}), + ); return [200, headers['X-Foo']]; });