mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 05:43:02 +00:00
13 lines
338 B
JavaScript
13 lines
338 B
JavaScript
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()
|
|
})
|
|
})
|