diff options
| author | ST-DDT <[email protected]> | 2023-10-21 08:58:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-21 06:58:18 +0000 |
| commit | f222448cabedee3e8ac4f64f8003df0954de2913 (patch) | |
| tree | f78bc0a84b356f4a91292e33ee34b47c889f45db /test/modules | |
| parent | 85403819af2c47e4f9d24c66ca34c844a6151bdb (diff) | |
| download | faker-f222448cabedee3e8ac4f64f8003df0954de2913.tar.xz faker-f222448cabedee3e8ac4f64f8003df0954de2913.zip | |
infra(unicorn): prefer-number-properties (#2452)
Diffstat (limited to 'test/modules')
| -rw-r--r-- | test/modules/number.spec.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 79b14261..3033c63b 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -319,7 +319,7 @@ describe('number', () => { expect(binary).toBeTypeOf('string'); expect(binary).toSatisfy(isBinary); - const binaryNum = parseInt(binary, 2); + const binaryNum = Number.parseInt(binary, 2); expect(binaryNum).toBeLessThanOrEqual(5); }); @@ -329,7 +329,7 @@ describe('number', () => { expect(binary).toBeTypeOf('string'); expect(binary).toSatisfy(isBinary); - const binaryNum = parseInt(binary, 2); + const binaryNum = Number.parseInt(binary, 2); expect(binaryNum).toBeLessThanOrEqual(255); expect(binaryNum).greaterThanOrEqual(15); }); @@ -362,7 +362,7 @@ describe('number', () => { expect(octal).toBeTypeOf('string'); expect(octal).toSatisfy(validator.isOctal); - const octalNum = parseInt(octal, 8); + const octalNum = Number.parseInt(octal, 8); expect(octalNum).toBeLessThanOrEqual(5); }); @@ -372,7 +372,7 @@ describe('number', () => { expect(octal).toBeTypeOf('string'); expect(octal).toSatisfy(validator.isOctal); - const octalNum = parseInt(octal, 8); + const octalNum = Number.parseInt(octal, 8); expect(octalNum).toBeLessThanOrEqual(255); expect(octalNum).greaterThanOrEqual(15); }); @@ -412,7 +412,7 @@ describe('number', () => { expect(hex).toBeTypeOf('string'); expect(hex).toSatisfy(validator.isHexadecimal); - const hexNum = parseInt(hex, 16); + const hexNum = Number.parseInt(hex, 16); expect(hexNum).toBeLessThanOrEqual(255); expect(hexNum).greaterThanOrEqual(15); }); |
