summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/lifecycle.js
blob: 288329c2445a910d89a941184f479076dabe6624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()
  })
})