diff options
| author | Eric Cheng <[email protected]> | 2022-12-07 04:20:22 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-07 10:20:22 +0100 |
| commit | 97dbfa198644da98dc3f423acaaeb2976647e52b (patch) | |
| tree | 34a4ebded72fdf54572c5e65a4e81a32d1a434d8 /test/random.spec.ts | |
| parent | c4b7ce8648cbd5ac2b224942908bccf9914e08f9 (diff) | |
| download | faker-97dbfa198644da98dc3f423acaaeb2976647e52b.tar.xz faker-97dbfa198644da98dc3f423acaaeb2976647e52b.zip | |
fix: broken `allowLeadingZeros` tests (#1638)
Diffstat (limited to 'test/random.spec.ts')
| -rw-r--r-- | test/random.spec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/random.spec.ts b/test/random.spec.ts index 67a04c6d..2ec6008d 100644 --- a/test/random.spec.ts +++ b/test/random.spec.ts @@ -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))( |
