From c7d0025d39039892dc7b58411de48e5a6645948c Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Thu, 6 Oct 2022 13:13:28 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit e70fd02 --- __tests__/get-arch.test.ts | 4 ++-- __tests__/get-os.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/get-arch.test.ts b/__tests__/get-arch.test.ts index 2dff9b0..d59cc45 100644 --- a/__tests__/get-arch.test.ts +++ b/__tests__/get-arch.test.ts @@ -54,10 +54,10 @@ describe('getArch', () => { test('exception', () => { expect(() => { getArch('mips', 'linux', '0.101.0'); - }).toThrowError('mips is not supported'); + }).toThrow('mips is not supported'); expect(() => { getArch('arm', 'linux', '0.102.0') - }).toThrowError('arm is not supported'); + }).toThrow('arm is not supported'); }); }); diff --git a/__tests__/get-os.test.ts b/__tests__/get-os.test.ts index 4d1404d..0e67078 100644 --- a/__tests__/get-os.test.ts +++ b/__tests__/get-os.test.ts @@ -22,6 +22,6 @@ describe('getOS', () => { test('exception', () => { expect(() => { getOS('centos', '0.101.0'); - }).toThrowError('centos is not supported'); + }).toThrow('centos is not supported'); }); });