From 98057a03bbb985741a512e9161690ea22a1c62e5 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Fri, 3 May 2024 14:28:44 -0700 Subject: [PATCH] chore(linting): no-unused-vars --- test/check-engine.js | 14 +++++++------- test/check-platform.js | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/check-engine.js b/test/check-engine.js index 080f6b1..bd59299 100644 --- a/test/check-engine.js +++ b/test/check-engine.js @@ -12,10 +12,10 @@ const e = (npm, node, _id = 'pkg@1.2.3') => { return { engines, _id } } -t.test('no engine', async t => +t.test('no engine', async () => checkEngine({}, '1.3.2', '0.2.1')) -t.test('empty engine object', async t => +t.test('empty engine object', async () => checkEngine(e(), '1.1.2', '0.2.1')) t.test('node version too old', async t => @@ -30,7 +30,7 @@ t.test('npm version too old', async t => code: 'EBADENGINE', })) -t.test('force node version too old', async t => +t.test('force node version too old', async () => checkEngine(e(null, '0.1.0', 'test@1.0.0'), '1.3.2', '0.2.1', true)) t.test('cannot force when npm version too old', async t => @@ -38,14 +38,14 @@ t.test('cannot force when npm version too old', async t => code: 'EBADENGINE', })) -t.test('npm prerelease', async t => +t.test('npm prerelease', async () => checkEngine(e('>=1.2.3', '>=0.8'), '69.420.0-yolo', '69.420.0-yolo')) -t.test('node prerelease', async t => +t.test('node prerelease', async () => checkEngine(e('>=1.2.3', '>=0.8'), '1.2.3', '69.420.0-yolo')) -t.test('no node version', async t => +t.test('no node version', async () => checkEngine(e('>=1.2.3', '>=0.8'), '1.2.3', null)) -t.test('no npm version', async t => +t.test('no npm version', async () => checkEngine(e('>=1.2.3', '>=0.8'), null, '1.2.3')) diff --git a/test/check-platform.js b/test/check-platform.js index 00ecf04..3d262d6 100644 --- a/test/check-platform.js +++ b/test/check-platform.js @@ -13,13 +13,13 @@ t.test('os wrong', async t => os: 'enten-os', }), { code: 'EBADPLATFORM' })) -t.test('nothing wrong', async t => +t.test('nothing wrong', async () => checkPlatform({ cpu: 'any', os: 'any' })) -t.test('force', async t => +t.test('force', async () => checkPlatform({ cpu: 'enten-cpu', os: 'any' }, true)) -t.test('no opinions', async t => +t.test('no opinions', async () => checkPlatform({})) t.test('only target cpu wrong', async t => @@ -40,10 +40,10 @@ t.test('os wrong (negation)', async t => os: '!' + process.platform, }), { code: 'EBADPLATFORM' })) -t.test('nothing wrong (negation)', async t => +t.test('nothing wrong (negation)', async () => checkPlatform({ cpu: '!enten-cpu', os: '!enten-os' })) -t.test('nothing wrong with overridden os', async t => +t.test('nothing wrong with overridden os', async () => checkPlatform({ cpu: 'any', os: 'enten-os', @@ -51,7 +51,7 @@ t.test('nothing wrong with overridden os', async t => os: 'enten-os', })) -t.test('nothing wrong with overridden cpu', async t => +t.test('nothing wrong with overridden cpu', async () => checkPlatform({ cpu: 'enten-cpu', os: 'any', @@ -59,7 +59,7 @@ t.test('nothing wrong with overridden cpu', async t => cpu: 'enten-cpu', })) -t.test('nothing wrong with overridden libc', async t => +t.test('nothing wrong with overridden libc', async () => checkPlatform({ cpu: 'enten-cpu', libc: 'enten-libc',