Skip to content

Commit 07247ca

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update xo to version 0.25.0
1 parent c255b07 commit 07247ca

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/verify-auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = async (pluginConfig, pkg, context) => {
1717
if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) {
1818
try {
1919
await execa('npm', ['whoami', '--registry', registry], {cwd, env});
20-
} catch (error) {
20+
} catch (_) {
2121
throw new AggregateError([getError('EINVALIDNPMTOKEN', {registry})]);
2222
}
2323
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"sinon": "^7.1.1",
4646
"stream-buffers": "^3.0.2",
4747
"tempy": "^0.3.0",
48-
"xo": "^0.24.0"
48+
"xo": "^0.25.0"
4949
},
5050
"engines": {
5151
"node": ">=8.3"

test/helpers/npm-registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function start() {
3939
minTimeout: 1000,
4040
factor: 2,
4141
});
42-
} catch (error) {
42+
} catch (_) {
4343
throw new Error(`Couldn't start npm-docker-couchdb after 2 min`);
4444
}
4545

test/integration.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ test.before(async () => {
2525
await npmRegistry.start();
2626
});
2727

28+
test.after.always(async () => {
29+
// Stop the local NPM registry
30+
await npmRegistry.stop();
31+
});
32+
2833
test.beforeEach(t => {
2934
// Clear npm cache to refresh the module state
3035
clearModule('..');
@@ -36,11 +41,6 @@ test.beforeEach(t => {
3641
t.context.logger = {log: t.context.log};
3742
});
3843

39-
test.after.always(async () => {
40-
// Stop the local NPM registry
41-
await npmRegistry.stop();
42-
});
43-
4444
test('Skip npm auth verification if "npmPublish" is false', async t => {
4545
const cwd = tempy.directory();
4646
const env = {NPM_TOKEN: 'wrong_token'};

0 commit comments

Comments
 (0)