Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2021-03-24 20:47:47 +0300
committerGar <gar+gh@danger.computer>2021-03-24 20:50:33 +0300
commite8d2adcf40ad63030f844c9aa44c6d16e2146797 (patch)
treef12f5d6504c7974fcaa37a5833407eaeccdd09b0 /test
parent98efadeb4b2ae9289f14ed6f42a169230faf7239 (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')
-rw-r--r--test/lib/config.js7
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)