Files
npm/test/tap/lifecycle.js
Robert Kowalski 89bf6f260a Fix lifecycle test
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.
2014-04-18 18:34:28 +02:00

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()
})
})