Skip to content

Commit

Permalink
npm fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 17, 2024
1 parent 5b1b30b commit f244af3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const config = {
randomize: true,
setupFilesAfterEnv: [
"jest-extended/all",
"<rootDir>/src/test-utils/jest-matchers.ts"
"<rootDir>/src/test-utils/jest-matchers.ts",
],
};

Expand Down
4 changes: 3 additions & 1 deletion src/random.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
});
});
});
2 changes: 1 addition & 1 deletion src/test-utils/jest-matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function toBeWithinDelta(received: number, expected: number, delta: number) {
}
}

expect.extend({ toBeWithinDelta });
expect.extend({ toBeWithinDelta });

0 comments on commit f244af3

Please sign in to comment.