Skip to content

Commit bc7a7b5

Browse files
committed
fixup
1 parent 711b8f3 commit bc7a7b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/commands/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Install extends ArboristWorkspaceCmd {
131131
args = args.filter(a => resolve(a) !== this.npm.prefix)
132132

133133
// `npm i -g` => "install this package globally"
134-
if (isGlobalInstall && where === globalTop && !args.length) {
134+
if (isGlobalInstall && !args.length) {
135135
args = ['.']
136136
}
137137

test/lib/commands/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ t.test('exec commands', async t => {
129129
await npm.exec('install')
130130
})
131131

132-
await t.test('should not self-install package if prefix is the same as PWD', async t => {
132+
await t.test('should not self-install package if prefix is the same as CWD', async t => {
133133
let REIFY_CALLED_WITH = null
134134
const { npm } = await loadMockNpm(t, {
135135
mocks: {

0 commit comments

Comments
 (0)