-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that it doesn't crash when the bindir is missing
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!") |