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/bin.js')
-rw-r--r--test/lib/commands/bin.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/lib/commands/bin.js b/test/lib/commands/bin.js
deleted file mode 100644
index 46170e765..000000000
--- a/test/lib/commands/bin.js
+++ /dev/null
@@ -1,32 +0,0 @@
-const t = require('tap')
-const { load: loadMockNpm } = require('../../fixtures/mock-npm')
-const mockGlobals = require('../../fixtures/mock-globals')
-
-t.test('bin not global', async t => {
- const { npm, joinedOutput, logs } = await loadMockNpm(t)
- await npm.exec('bin', [])
- t.match(joinedOutput(), npm.localBin)
- t.match(logs.error, [])
-})
-
-t.test('bin global in env.path', async t => {
- const { npm, joinedOutput, logs } = await loadMockNpm(t, {
- config: { global: true },
- })
-
- mockGlobals(t, {
- 'process.env': { path: npm.globalBin },
- })
- await npm.exec('bin', [])
- t.match(joinedOutput(), npm.globalBin)
- t.match(logs.error, [])
-})
-
-t.test('bin not in path', async t => {
- const { npm, joinedOutput, logs } = await loadMockNpm(t, {
- config: { global: true },
- })
- await npm.exec('bin', [])
- t.match(joinedOutput(), npm.globalBin)
- t.match(logs.error, [['bin', '(not in PATH env variable)']])
-})