Skip to content

Commit 98057a0

Browse files
committed
chore(linting): no-unused-vars
1 parent 2af6fe7 commit 98057a0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

test/check-engine.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const e = (npm, node, _id = 'pkg@1.2.3') => {
1212
return { engines, _id }
1313
}
1414

15-
t.test('no engine', async t =>
15+
t.test('no engine', async () =>
1616
checkEngine({}, '1.3.2', '0.2.1'))
1717

18-
t.test('empty engine object', async t =>
18+
t.test('empty engine object', async () =>
1919
checkEngine(e(), '1.1.2', '0.2.1'))
2020

2121
t.test('node version too old', async t =>
@@ -30,22 +30,22 @@ t.test('npm version too old', async t =>
3030
code: 'EBADENGINE',
3131
}))
3232

33-
t.test('force node version too old', async t =>
33+
t.test('force node version too old', async () =>
3434
checkEngine(e(null, '0.1.0', 'test@1.0.0'), '1.3.2', '0.2.1', true))
3535

3636
t.test('cannot force when npm version too old', async t =>
3737
t.throws(() => checkEngine(e('^1.4.6', null, 'test@1.0.0'), '1.3.2', '0.2.1'), {
3838
code: 'EBADENGINE',
3939
}))
4040

41-
t.test('npm prerelease', async t =>
41+
t.test('npm prerelease', async () =>
4242
checkEngine(e('>=1.2.3', '>=0.8'), '69.420.0-yolo', '69.420.0-yolo'))
4343

44-
t.test('node prerelease', async t =>
44+
t.test('node prerelease', async () =>
4545
checkEngine(e('>=1.2.3', '>=0.8'), '1.2.3', '69.420.0-yolo'))
4646

47-
t.test('no node version', async t =>
47+
t.test('no node version', async () =>
4848
checkEngine(e('>=1.2.3', '>=0.8'), '1.2.3', null))
4949

50-
t.test('no npm version', async t =>
50+
t.test('no npm version', async () =>
5151
checkEngine(e('>=1.2.3', '>=0.8'), null, '1.2.3'))

test/check-platform.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ t.test('os wrong', async t =>
1313
os: 'enten-os',
1414
}), { code: 'EBADPLATFORM' }))
1515

16-
t.test('nothing wrong', async t =>
16+
t.test('nothing wrong', async () =>
1717
checkPlatform({ cpu: 'any', os: 'any' }))
1818

19-
t.test('force', async t =>
19+
t.test('force', async () =>
2020
checkPlatform({ cpu: 'enten-cpu', os: 'any' }, true))
2121

22-
t.test('no opinions', async t =>
22+
t.test('no opinions', async () =>
2323
checkPlatform({}))
2424

2525
t.test('only target cpu wrong', async t =>
@@ -40,26 +40,26 @@ t.test('os wrong (negation)', async t =>
4040
os: '!' + process.platform,
4141
}), { code: 'EBADPLATFORM' }))
4242

43-
t.test('nothing wrong (negation)', async t =>
43+
t.test('nothing wrong (negation)', async () =>
4444
checkPlatform({ cpu: '!enten-cpu', os: '!enten-os' }))
4545

46-
t.test('nothing wrong with overridden os', async t =>
46+
t.test('nothing wrong with overridden os', async () =>
4747
checkPlatform({
4848
cpu: 'any',
4949
os: 'enten-os',
5050
}, false, {
5151
os: 'enten-os',
5252
}))
5353

54-
t.test('nothing wrong with overridden cpu', async t =>
54+
t.test('nothing wrong with overridden cpu', async () =>
5555
checkPlatform({
5656
cpu: 'enten-cpu',
5757
os: 'any',
5858
}, false, {
5959
cpu: 'enten-cpu',
6060
}))
6161

62-
t.test('nothing wrong with overridden libc', async t =>
62+
t.test('nothing wrong with overridden libc', async () =>
6363
checkPlatform({
6464
cpu: 'enten-cpu',
6565
libc: 'enten-libc',

0 commit comments

Comments
 (0)