Skip to content

Commit 84050e7

Browse files
committed
fixup: fix test
1 parent fc1df95 commit 84050e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/bin/windows-shims.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ t.test('run shims', t => {
9494
node_modules: {
9595
npm: {
9696
bin: {
97-
'npm-prefix.js': readFileSync(join(BIN, 'npm-prefix.js')),
98-
'npx-cli.js': `throw new Error('this should not be called')`,
99-
'npm-cli.js': `
100-
const assert = require('assert')
97+
'npm-prefix.js': `
10198
const { resolve } = require('path')
102-
assert.equal(process.argv.slice(2).join(' '), 'prefix -g')
10399
console.log(resolve(__dirname, '../../../global-prefix'))
104100
`,
101+
readFileSync(join(BIN, 'npm-prefix.js')),
102+
'npx-cli.js': `throw new Error('local npx should not be called')`,
103+
'npm-cli.js': `throw new Error('local npm should not be called')`,
105104
},
106105
},
107106
},

0 commit comments

Comments
 (0)