mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 14:41:29 +00:00

PR-URL: https://github.com/nodejs/node/pull/3310 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
15 lines
379 B
JavaScript
15 lines
379 B
JavaScript
var test = require('tap').test
|
|
|
|
var npmconf = require('../../lib/config/core.js')
|
|
var common = require('./00-config-setup.js')
|
|
|
|
test('with malformed', function (t) {
|
|
npmconf.load({}, common.malformed, function (er, conf) {
|
|
t.ok(er, 'Expected parse error')
|
|
if (!(er && /Failed parsing JSON config key email/.test(er.message))) {
|
|
throw er
|
|
}
|
|
t.end()
|
|
})
|
|
})
|