diff options
author | isaacs <i@izs.me> | 2010-09-02 03:21:26 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-09-02 03:21:26 +0400 |
commit | a5269e83cfc20cd5c5aaafabf1759a2174833b1a (patch) | |
tree | cff941c6f76684a988fd7b871a1a8fa4bec86d5f /test | |
parent | b20b42f7dbe37981b56c588358c110ccd925a674 (diff) |
test that things don't get exposed
Diffstat (limited to 'test')
-rw-r--r-- | test/packages/blerg/package.json | 3 | ||||
-rw-r--r-- | test/packages/blerg/test.js | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/packages/blerg/package.json b/test/packages/blerg/package.json index 945b5360f..90a41204a 100644 --- a/test/packages/blerg/package.json +++ b/test/packages/blerg/package.json @@ -1,5 +1,4 @@ { "name" : "blerg" , "version" : "0.0.0" -, "dependencies":{"base64" :"*", "websocket-server":"*", "vows":"*"} -, "scripts" : { "preinstall" : "echo [$npm_config_password] ; echo [$npm_config__password]" } +, "scripts" : { "test" : "node test.js" } } diff --git a/test/packages/blerg/test.js b/test/packages/blerg/test.js new file mode 100644 index 000000000..f548458ac --- /dev/null +++ b/test/packages/blerg/test.js @@ -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!") |