Skip to content

Commit 34137b3

Browse files
committed
fixup: fix test
1 parent fc1df95 commit 34137b3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test/bin/windows-shims.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@ 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+
'npx-cli.js': `throw new Error('local npx should not be called')`,
102+
'npm-cli.js': `throw new Error('local npm should not be called')`,
105103
},
106104
},
107105
},

0 commit comments

Comments
 (0)