From 43ef6b4a3e2777054a503c7f4504e50baaec214c Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Thu, 27 Jun 2019 20:37:36 +0800 Subject: [PATCH] Update test.js Co-Authored-By: Sindre Sorhus --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 58e995b..57a4706 100644 --- a/test.js +++ b/test.js @@ -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); });