Sha256: 987f427297f1d2e4f5a23cd4489285173914a0b93a8da3f784ab243351da0e4c
Contents?: true
Size: 476 Bytes
Versions: 27
Compression:
Stored size: 476 Bytes
Contents
var test = require('tap').test var npmconf = require('../npmconf.js') var common = require('./00-setup.js') var path = require('path') var fs = require('fs') test('cafile loads as ca', function (t) { var cafile = path.join(__dirname, 'fixtures', '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() }) })
Version data entries
27 entries across 20 versions & 3 rubygems