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'); }); });