From f244af3a1409f6be4d01dbf64d47e5d2ee51881e Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Tue, 17 Dec 2024 11:36:30 -0800 Subject: [PATCH] npm fmt --- jest.config.mjs | 2 +- src/random.test.ts | 4 +++- src/test-utils/jest-matchers.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jest.config.mjs b/jest.config.mjs index af6a9bb..66bf578 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -58,7 +58,7 @@ const config = { randomize: true, setupFilesAfterEnv: [ "jest-extended/all", - "/src/test-utils/jest-matchers.ts" + "/src/test-utils/jest-matchers.ts", ], }; diff --git a/src/random.test.ts b/src/random.test.ts index 7f805f0..79e2d4d 100644 --- a/src/random.test.ts +++ b/src/random.test.ts @@ -49,7 +49,9 @@ describe("random", () => { it("should return undefined for an empty array", () => { const array: number[] = []; - expect(() => pickRandom(array)).toThrow("Cannot pick from an empty array"); + expect(() => pickRandom(array)).toThrow( + "Cannot pick from an empty array", + ); }); }); }); diff --git a/src/test-utils/jest-matchers.ts b/src/test-utils/jest-matchers.ts index ba6d00c..a71633b 100644 --- a/src/test-utils/jest-matchers.ts +++ b/src/test-utils/jest-matchers.ts @@ -26,4 +26,4 @@ function toBeWithinDelta(received: number, expected: number, delta: number) { } } -expect.extend({ toBeWithinDelta }); \ No newline at end of file +expect.extend({ toBeWithinDelta });