]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/test/tap/config-malformed.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / test / tap / config-malformed.js
1 var test = require('tap').test
2
3 var npmconf = require("../../lib/config/core.js")
4 var common = require("./00-config-setup.js")
5
6 test('with malformed', function (t) {
7   npmconf.load({}, common.malformed, function (er, conf) {
8     t.ok(er, 'Expected parse error')
9     if (!(er && /Failed parsing JSON config key email/.test(er.message))) {
10       throw er
11     }
12     t.end()
13   })
14 })