Skip to content

Commit 3ea64ce

Browse files
authored
fix: typo in error message (#925)
1 parent b4cadfa commit 3ea64ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/datatype/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class Datatype {
4949
}
5050

5151
if (max < min) {
52-
throw new FakerError(`Max ${max} should be larger then min ${min}.`);
52+
throw new FakerError(`Max ${max} should be greater than min ${min}.`);
5353
}
5454

5555
const randomNumber = Math.floor(

test/datatype.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ describe('datatype', () => {
297297

298298
expect(() => {
299299
faker.datatype.number({ min, max });
300-
}).toThrowError(`Max ${max} should be larger then min ${min}.`);
300+
}).toThrowError(`Max ${max} should be greater than min ${min}.`);
301301
});
302302
});
303303

0 commit comments

Comments
 (0)