more linting

This commit is contained in:
Gareth Jones
2013-05-30 07:54:42 +10:00
parent 913c748ee0
commit 87dc7cf5aa
+9 -6
View File
@@ -1,6 +1,7 @@
var assert = require('assert'), "use strict";
vows = require('vows'), var assert = require('assert')
sandbox = require('sandboxed-module'); , vows = require('vows')
, sandbox = require('sandboxed-module');
function makeTestAppender() { function makeTestAppender() {
return { return {
@@ -12,7 +13,7 @@ function makeTestAppender() {
}, },
appender: function() { appender: function() {
var self = this; var self = this;
return function(logEvt) { self.logEvt = logEvt; } return function(logEvt) { self.logEvt = logEvt; };
} }
}; };
} }
@@ -114,12 +115,14 @@ vows.describe('log4js configure').addBatch({
} }
} }
}, },
log4js = sandbox.require('../lib/log4js', log4js = sandbox.require(
'../lib/log4js',
{ {
requires: { requires: {
'fs': fakeFS, 'fs': fakeFS,
} }
}); }
);
delete process.env.LOG4JS_CONFIG; delete process.env.LOG4JS_CONFIG;
return fileRead; return fileRead;
}, },