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