Added error throwing when error loading test file.

This will hopefully give us better visibility into our Travis CI
build failures.
This commit is contained in:
John Engler 2014-04-08 12:40:27 -07:00
parent 3b5eb28115
commit 6e3da6f44b

View File

@ -135,6 +135,9 @@ vows.describe('../lib/appenders/dateFile').addBatch({
teardown: removeFile('date-file-test.log'), teardown: removeFile('date-file-test.log'),
'should load appender configuration from a json file': function(err, contents) { 'should load appender configuration from a json file': function(err, contents) {
if (err) {
throw err;
}
assert.include(contents, 'this should be written to the file' + EOL); assert.include(contents, 'this should be written to the file' + EOL);
assert.equal(contents.indexOf('this should not be written to the file'), -1); assert.equal(contents.indexOf('this should not be written to the file'), -1);
} }