Skip to content

Commit

Permalink
fix: typo in error message (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
azangru authored May 5, 2022
1 parent b4cadfa commit 3ea64ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/datatype/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Datatype {
}

if (max < min) {
throw new FakerError(`Max ${max} should be larger then min ${min}.`);
throw new FakerError(`Max ${max} should be greater than min ${min}.`);
}

const randomNumber = Math.floor(
Expand Down
2 changes: 1 addition & 1 deletion test/datatype.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ describe('datatype', () => {

expect(() => {
faker.datatype.number({ min, max });
}).toThrowError(`Max ${max} should be larger then min ${min}.`);
}).toThrowError(`Max ${max} should be greater than min ${min}.`);
});
});

Expand Down

0 comments on commit 3ea64ce

Please sign in to comment.