Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 29, 2018
1 parent fb15a12 commit 696abf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions optimization-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sut.unicorn().then(() => {
return sut.unicorn().then(() => {
assertOptimized(sut.unicorn, 'unicorn');
});
}).catch(err => {
console.error(err.stack);
}).catch(error => {
console.error(error.stack);
process.exit(1); // eslint-disable-line unicorn/no-process-exit
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"bluebird"
],
"devDependencies": {
"ava": "*",
"ava": "^0.25.0",
"pinkie-promise": "^2.0.0",
"v8-natives": "^1.1.0",
"xo": "*"
"xo": "^0.23.0"
}
}
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test('throw error on invalid input', t => {
});

test('error', async t => {
t.is(await m(fixture1)().catch(err => err), 'error');
t.is(await m(fixture1)().catch(error => error), 'error');
});

test('pass argument', async t => {
Expand All @@ -78,7 +78,7 @@ test('multiArgs option', async t => {
});

test('multiArgs option — rejection', async t => {
t.deepEqual(await m(fixture1, {multiArgs: true})().catch(err => err), ['error', 'unicorn', 'rainbow']);
t.deepEqual(await m(fixture1, {multiArgs: true})().catch(error => error), ['error', 'unicorn', 'rainbow']);
});

test('wrap core method', async t => {
Expand Down

0 comments on commit 696abf8

Please sign in to comment.