Skip to content

Commit 7124cf3

Browse files
committed
Test that it doesn't crash when the bindir is missing
1 parent 8a0b3c7 commit 7124cf3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{ "name":"npm-test-missing-bindir"
2+
, "version" : "0.0.0"
3+
, "scripts" : { "test" : "node test.js" }
4+
, "directories": { "bin" : "./not-found" } }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
var assert = require("assert")
3+
assert.equal(undefined, process.env.npm_config__password, "password exposed!")
4+
assert.equal(undefined, process.env.npm_config__auth, "auth exposed!")
5+
assert.equal(undefined, process.env.npm_config__authCrypt, "authCrypt exposed!")

0 commit comments

Comments
 (0)