From f222448cabedee3e8ac4f64f8003df0954de2913 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 21 Oct 2023 08:58:18 +0200 Subject: infra(unicorn): prefer-number-properties (#2452) --- test/modules/number.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/modules') 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); }); -- cgit v1.2.3