converted date file appender tests to mocha

This commit is contained in:
Gareth Jones
2013-08-27 13:44:33 +10:00
parent 3312724d7d
commit d43d49d83d
4 changed files with 277 additions and 250 deletions

View File

@@ -136,7 +136,9 @@ function dispatch(event) {
function load(file) {
debug("loading ", file);
return JSON.parse(fs.readFileSync(file, "utf-8"));
var contents = fs.readFileSync(file, "utf-8");
debug("file contents ", contents);
return JSON.parse(contents);
}
function configure(configurationFileOrObject) {