summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/lifecycle.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/lifecycle.js')
-rw-r--r--deps/npm/test/tap/lifecycle.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/npm/test/tap/lifecycle.js b/deps/npm/test/tap/lifecycle.js
new file mode 100644
index 0000000000..288329c244
--- /dev/null
+++ b/deps/npm/test/tap/lifecycle.js
@@ -0,0 +1,12 @@
+var test = require("tap").test
+var npm = require('../../')
+var lifecycle = require('../../lib/utils/lifecycle')
+
+test("lifecycle: make env correctly", function (t) {
+ npm.load({enteente: Infinity}, function() {
+ var env = lifecycle.makeEnv({}, null, process.env)
+
+ t.equal('Infinity', env.npm_config_enteente)
+ t.end()
+ })
+})