Skip to content

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Sindre Sorhus <[email protected]>
  • Loading branch information
popomore and sindresorhus authored Jun 27, 2019
1 parent 71ad23f commit 43ef6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ test('throws when specifying a file as cwd - stream', t => {
}, 'The `cwd` option must be a path to a directory');
});

test('ignore when specifying a noexist directory as cwd - async', async t => {
test('don't throw when specifying a non-existing cwd directory - async', async t => {
const actual = await globby('.', {cwd: '/unknown'});
t.true(actual.length === 0);
});
Expand Down

0 comments on commit 43ef6b4

Please sign in to comment.