Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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