mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 04:40:05 +02:00
update packages to latest version
This commit is contained in:
18
node_modules/npm/test/tap/config-certfile.js
generated
vendored
Normal file
18
node_modules/npm/test/tap/config-certfile.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
require("./00-config-setup.js")
|
||||
|
||||
var path = require("path")
|
||||
var fs = require("fs")
|
||||
var test = require("tap").test
|
||||
var npmconf = require("../../lib/config/core.js")
|
||||
|
||||
test("cafile loads as ca", function (t) {
|
||||
var cafile = path.join(__dirname, "..", "fixtures", "config", "multi-ca")
|
||||
|
||||
npmconf.load({cafile: cafile}, function (er, conf) {
|
||||
if (er) throw er
|
||||
|
||||
t.same(conf.get("cafile"), cafile)
|
||||
t.same(conf.get("ca").join("\n"), fs.readFileSync(cafile, "utf8").trim())
|
||||
t.end()
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user