mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
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()
|
|
})
|
|
})
|