Skip to content

Commit

Permalink
fixup: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Mar 6, 2024
1 parent fc1df95 commit 84050e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/bin/windows-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ t.test('run shims', t => {
node_modules: {
npm: {
bin: {
'npm-prefix.js': readFileSync(join(BIN, 'npm-prefix.js')),
'npx-cli.js': `throw new Error('this should not be called')`,
'npm-cli.js': `
const assert = require('assert')
'npm-prefix.js': `
const { resolve } = require('path')
assert.equal(process.argv.slice(2).join(' '), 'prefix -g')
console.log(resolve(__dirname, '../../../global-prefix'))
`,
readFileSync(join(BIN, 'npm-prefix.js')),
'npx-cli.js': `throw new Error('local npx should not be called')`,
'npm-cli.js': `throw new Error('local npm should not be called')`,
},
},
},
Expand Down

0 comments on commit 84050e7

Please sign in to comment.