mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
379 B
15 lines
379 B
10 years ago
|
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()
|
||
|
})
|
||
|
})
|