Fix bug that caused failing tests when no conf.json file is present. Closes #206

This commit is contained in:
Michael Mathews 2012-10-01 17:42:48 +01:00
parent 46959b53a1
commit 570a585f4e

View File

@ -14,10 +14,14 @@ var util = require('common/util');
// required config values, override these defaults in your config.json if necessary
const defaults = {
"tags": {
"allowUnknownTags": true
},
"source": {
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/)_"
},
"plugins": [],
"jsVersion": 180
};
@ -28,7 +32,6 @@ const defaults = {
*/
function Config(json) {
json = JSON.parse( (json || "{}") );
this._config = util.mergeRecurse(defaults, json);
}