Skip to content

Commit

Permalink
test: filter node bin out of npm test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 29, 2019
1 parent abffc8b commit 2df3c90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap-snapshots/test-util-npm.js-TAP.test.js
Expand Up @@ -11,9 +11,9 @@ Object {
"/path/to/npm/bin/npm-cli.js",
"flerb",
],
"cmd": "/usr/local/bin/node",
"cmd": "{NODE}",
"stderr": "",
"stdout": "[\\"/usr/local/bin/node\\",[\\"/path/to/npm/bin/npm-cli.js\\",\\"flerb\\"],{\\"cwd\\":\\"/cwd\\"}]",
"stdout": "[\\"{NODE}\\",[\\"/path/to/npm/bin/npm-cli.js\\",\\"flerb\\"],{\\"cwd\\":\\"/cwd\\"}]",
}
`

Expand Down
2 changes: 2 additions & 0 deletions test/util/npm.js
Expand Up @@ -12,6 +12,8 @@ cp.spawn = (...args) => {
return proc
}

t.cleanSnapshot = s => s.split(process.execPath).join('{NODE}')

const npm = require('../../lib/util/npm.js')
t.test('do the things', t => {
t.pass('wtf')
Expand Down

0 comments on commit 2df3c90

Please sign in to comment.