diff options
author | nlf <quitlahok@gmail.com> | 2021-03-24 20:47:47 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-03-24 20:50:33 +0300 |
commit | e8d2adcf40ad63030f844c9aa44c6d16e2146797 (patch) | |
tree | f12f5d6504c7974fcaa37a5833407eaeccdd09b0 /test/lib/config.js | |
parent | 98efadeb4b2ae9289f14ed6f42a169230faf7239 (diff) |
fix: config should not error when workspaces are configured
PR-URL: https://github.com/npm/cli/pull/2945
Credit: @nlf
Close: #2945
Reviewed-by: @wraithgar
Diffstat (limited to 'test/lib/config.js')
-rw-r--r-- | test/lib/config.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lib/config.js b/test/lib/config.js index 14cd81617..98ece0f4f 100644 --- a/test/lib/config.js +++ b/test/lib/config.js @@ -93,6 +93,13 @@ t.test('config no args', t => { }) }) +t.test('config ignores workspaces', t => { + config.execWorkspaces([], [], (err) => { + t.match(err, /usage instructions/, 'should not error out when workspaces are defined') + t.end() + }) +}) + t.test('config list', t => { t.plan(2) |