blob: 890aa5541016371f0a0121dbbe35ceed20e12956 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var test = require('tap').test
var npm = require('../../')
// This test has to be separate from `version-commit-hooks.js`, due to
// mutual exclusivity with the first test in that file. Initial configuration
// seems to only work as expected for defaults during the first `npm.load()`.
test('npm config `commit-hooks` defaults to `true`', function (t) {
npm.load({}, function () {
t.same(npm.config.get('commit-hooks'), true)
t.end()
})
})
|