Skip to content

Commit 86a96f9

Browse files
committed
fix: broken allowLeadingZeros tests
1 parent c4b7ce8 commit 86a96f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/random.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ describe('random', () => {
348348
const actual = faker.random.numeric();
349349

350350
expect(actual).toHaveLength(1);
351-
expect(actual).toMatch(/^[1-9]$/);
351+
expect(actual).toMatch(/^[0-9]$/);
352352
});
353353

354354
it.each(times(100))(

test/string.spec.ts

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

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

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

0 commit comments

Comments
 (0)