mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 10:27:12 +00:00

Closes: https://github.com/nodejs/node/pull/16280 PR-URL: https://github.com/nodejs/node/pull/16509 Fixes: https://github.com/nodejs/node/issues/14161 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
14 lines
454 B
JavaScript
14 lines
454 B
JavaScript
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()
|
|
})
|
|
})
|