diff options
| author | ST-DDT <[email protected]> | 2025-02-09 20:17:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-09 19:17:43 +0000 |
| commit | 9c42195a753015ab4f5775ef8af3aa5b172cfb08 (patch) | |
| tree | f91d114ef9e71dbe1babb5ea4f724f8afa91b5a1 /test/modules | |
| parent | 9e1395380cf9baf9f0350c43cbbc303430e77dfb (diff) | |
| download | faker-9c42195a753015ab4f5775ef8af3aa5b172cfb08.tar.xz faker-9c42195a753015ab4f5775ef8af3aa5b172cfb08.zip | |
test: enable test to generate Number.MAX_SAFE_INTEGER (#3393)
Diffstat (limited to 'test/modules')
| -rw-r--r-- | test/modules/number.spec.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 9af0d58a..d2762cf4 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -710,8 +710,7 @@ describe('number', () => { expect(actual).toBe(0); }); - // TODO @ST-DDT 2023-10-12: This requires a randomizer with 53 bits of precision - it.todo('should be able to return MAX_SAFE_INTEGER', () => { + it('should be able to return MAX_SAFE_INTEGER', () => { randomizer.next = () => MERSENNE_MAX_VALUE; const actual = customFaker.number.int(); expect(actual).toBe(Number.MAX_SAFE_INTEGER); |
