mirror of https://github.com/nodejs/node.git
13 lines
337 B
JavaScript
13 lines
337 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()
|
||
|
})
|
||
|
})
|