Skip to content

Commit

Permalink
Fix typo in exception (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaggle authored Apr 13, 2020
1 parent 9778ce3 commit fee38b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pidtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function list(PID, options, callback) {
}

if (!root) {
callback(new Error('No maching pid found'));
callback(new Error('No matching pid found'));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test('should throw an error if an invalid pid is provided', async t => {

test('should throw an error if the pid does not exists', async t => {
const err = await t.throws(pidtree(65535));
t.is(err.message, 'No maching pid found');
t.is(err.message, 'No matching pid found');
});

test.cb("should use the callback if it's provided", t => {
Expand Down

0 comments on commit fee38b9

Please sign in to comment.