Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lifecycle.js « tap « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa0efc52669f2c164c30c14fc93a0a862a9458f5 (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()
  })
})