1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 12:20:04 +02:00
Files
minifyfromhtml/node_modules/npm/test/tap/config-malformed.js
2022-08-20 18:51:33 +02:00

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()
})
})