mirror of
https://github.com/zhigang1992/npm.git
synced 2026-06-17 04:09:14 +08:00
The test in 8b5e7b6a fails as it depends on a unconfigured npm
which uses exact the same values as a vanilla npmconf instance.
This fix also does not depends on the external dependency npmconf.
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()
|
|
})
|
|
})
|