Skip to content

Commit

Permalink
Merge branch 'noexist-cwd' of github.com:popomore/globby into noexist…
Browse files Browse the repository at this point in the history
…-cwd
  • Loading branch information
popomore committed Jul 2, 2019
2 parents 19bd8c0 + 43ef6b4 commit 91b875f
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 91b875f

Please sign in to comment.