Skip to content

Commit

Permalink
fix: broken allowLeadingZeros tests (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-brain committed Dec 7, 2022
1 parent c4b7ce8 commit 97dbfa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/random.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ describe('random', () => {
const actual = faker.random.numeric();

expect(actual).toHaveLength(1);
expect(actual).toMatch(/^[1-9]$/);
expect(actual).toMatch(/^[0-9]$/);
});

it.each(times(100))(
Expand Down
2 changes: 1 addition & 1 deletion test/string.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ describe('string', () => {

expect(actual).toBeTypeOf('string');
expect(actual).toHaveLength(1000);
expect(actual).toMatch(/^[1-9][0-9]+$/);
expect(actual).toMatch(/^[0-9]+$/);
});

it('should allow leading zeros via option', () => {
Expand Down

0 comments on commit 97dbfa1

Please sign in to comment.