]> gerrit.simantics Code Review - simantics/district.git/blob - test/tap/config-malformed.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / 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 })