Skip to content

Commit

Permalink
test: Update test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 23, 2020
1 parent d30a725 commit 09de8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test("undefined", async (t) => {
try {
await whereis();
} catch (error) {
t.equal(error, 'Could not find undefined on your system; Command failed: which undefined\n', 'undefined was found');
t.equal(error, 'No command name is passed', 'undefined was found');
t.equal(error.message, undefined, 'undefined was found');
}
});
Expand All @@ -19,7 +19,7 @@ test("Empty", async (t) => {
try {
await whereis('');
} catch (error) {
t.equal(error, 'Could not find on your system; Command failed: which \nusage: which [-as] program ...\n', 'Empty was found');
t.equal(error, 'No command name is passed', 'Empty was found');
t.equal(error.message, undefined, 'Empty was found');
}
});

0 comments on commit 09de8ae

Please sign in to comment.