Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-09-02 03:21:26 +0400
committerisaacs <i@izs.me>2010-09-02 03:21:26 +0400
commita5269e83cfc20cd5c5aaafabf1759a2174833b1a (patch)
treecff941c6f76684a988fd7b871a1a8fa4bec86d5f /test
parentb20b42f7dbe37981b56c588358c110ccd925a674 (diff)
test that things don't get exposed
Diffstat (limited to 'test')
-rw-r--r--test/packages/blerg/package.json3
-rw-r--r--test/packages/blerg/test.js5
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!")