Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <[email protected]>
  • Loading branch information
xDivisionByZerox and Shinigami92 authored Apr 20, 2023
1 parent 4310b36 commit 14f8c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('helpers', () => {
});

it('should throw with no arguments', () => {
// @ts-expect-error `arrayElement` without arguments is not supported in TypeScript
// @ts-expect-error: `arrayElement` without arguments is not supported in TypeScript
expect(() => faker.helpers.arrayElement()).toThrowError(
new FakerError(
'Calling `faker.helpers.arrayElement()` without arguments is no longer supported.'
Expand Down Expand Up @@ -489,7 +489,7 @@ describe('helpers', () => {
);

it('should throw with no arguments', () => {
// @ts-expect-error `arrayElements` without arguments is not supported in TypeScript
// @ts-expect-error: `arrayElements` without arguments is not supported in TypeScript
expect(() => faker.helpers.arrayElements()).toThrowError(
new FakerError(
'Calling `faker.helpers.arrayElements()` without arguments is no longer supported.'
Expand Down

0 comments on commit 14f8c1a

Please sign in to comment.