more linting
This commit is contained in:
parent
20f80ff775
commit
def0e8e371
@ -1,8 +1,9 @@
|
|||||||
var vows = require('vows'),
|
"use strict";
|
||||||
assert = require('assert'),
|
var vows = require('vows')
|
||||||
path = require('path'),
|
, assert = require('assert')
|
||||||
fs = require('fs'),
|
, path = require('path')
|
||||||
log4js = require('../lib/log4js');
|
, fs = require('fs')
|
||||||
|
, log4js = require('../lib/log4js');
|
||||||
|
|
||||||
function removeFile(filename) {
|
function removeFile(filename) {
|
||||||
return function() {
|
return function() {
|
||||||
@ -66,7 +67,10 @@ vows.describe('../lib/appenders/dateFile').addBatch({
|
|||||||
},
|
},
|
||||||
|
|
||||||
'should use the basic layout': function(contents) {
|
'should use the basic layout': function(contents) {
|
||||||
assert.match(contents, /\[\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}\] \[INFO\] default-settings - /);
|
assert.match(
|
||||||
|
contents,
|
||||||
|
/\[\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}\] \[INFO\] default-settings - /
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +117,11 @@ vows.describe('../lib/appenders/dateFile').addBatch({
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
, thisTime = format.asString(options.appenders[0].pattern, new Date());
|
, thisTime = format.asString(options.appenders[0].pattern, new Date());
|
||||||
fs.writeFileSync(path.join(__dirname, 'date-file-test' + thisTime), "this is existing data" + require('os').EOL, 'utf8');
|
fs.writeFileSync(
|
||||||
|
path.join(__dirname, 'date-file-test' + thisTime),
|
||||||
|
"this is existing data" + require('os').EOL,
|
||||||
|
'utf8'
|
||||||
|
);
|
||||||
log4js.clearAppenders();
|
log4js.clearAppenders();
|
||||||
log4js.configure(options);
|
log4js.configure(options);
|
||||||
logger = log4js.getLogger('tests');
|
logger = log4js.getLogger('tests');
|
||||||
|
Loading…
Reference in New Issue
Block a user