Skip to content

Commit

Permalink
Test that it doesn't crash when the bindir is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 10, 2011
1 parent 8a0b3c7 commit 7124cf3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/packages/npm-test-missing-bindir/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ "name":"npm-test-missing-bindir"
, "version" : "0.0.0"
, "scripts" : { "test" : "node test.js" }
, "directories": { "bin" : "./not-found" } }
5 changes: 5 additions & 0 deletions test/packages/npm-test-missing-bindir/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

var assert = require("assert")
assert.equal(undefined, process.env.npm_config__password, "password exposed!")
assert.equal(undefined, process.env.npm_config__auth, "auth exposed!")
assert.equal(undefined, process.env.npm_config__authCrypt, "authCrypt exposed!")

0 comments on commit 7124cf3

Please # to comment.