node/deps/npm/test/tap/lifecycle.js
isaacs f76c3938d0 npm: upgrade to v1.4.8
* Check SHA before using files from cache
* adduser: allow change of the saved password
* Make `npm install` respect `config.unicode`
* Fix lifecycle to pass `Infinity` for config env value
* Don't return 0 exit code on invalid command
* cache: Handle 404s and other HTTP errors as errors
* bump tap dep, make tests stderr a bit quieter
* Resolve ~ in path configs to env.HOME
* Include npm version in default user-agent conf
* npm init: Use ISC as default license, use save-prefix for deps
* Many test and doc fixes
2014-05-01 11:09:00 -07: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()
})
})