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
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/commands/repo.js')
-rw-r--r--test/lib/commands/repo.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/commands/repo.js b/test/lib/commands/repo.js
index e06a28944..4c983f135 100644
--- a/test/lib/commands/repo.js
+++ b/test/lib/commands/repo.js
@@ -311,4 +311,12 @@ t.test('workspaces', async t => {
)
t.match({}, opened, 'opened no repo urls')
})
+
+ t.test('package arg and workspace', async (t) => {
+ npm.config.set('workspace', ['workspace-a'])
+ await npm.exec('repo', ['.'])
+ t.match({
+ 'https://github.com/npm/workspaces-test': 1,
+ }, opened, 'opened url for package arg, not workspace')
+ })
})