more linting

This commit is contained in:
Gareth Jones 2013-05-27 07:48:29 +10:00
parent 1ad4977aec
commit 4fd138f87d

View File

@ -1,3 +1,4 @@
"use strict";
var vows = require('vows') var vows = require('vows')
, assert = require('assert') , assert = require('assert')
, sandbox = require('sandboxed-module'); , sandbox = require('sandboxed-module');
@ -10,8 +11,7 @@ vows.describe('log4js-abspath').addBatch({
'../lib/log4js', '../lib/log4js',
{ requires: { requires:
{ './appenders/fake': { './appenders/fake':
{ { name: "fake",
name: "fake",
appender: function() {}, appender: function() {},
configure: function(configuration, options) { configure: function(configuration, options) {
appenderOptions = options; appenderOptions = options;
@ -47,8 +47,8 @@ vows.describe('log4js-abspath').addBatch({
'../lib/appenders/file', '../lib/appenders/file',
{ requires: { requires:
{ '../streams': { '../streams':
{ { RollingFileStream:
RollingFileStream: function(file) { function(file) {
fileOpened = file; fileOpened = file;
return { return {
on: function() {}, on: function() {},
@ -59,7 +59,13 @@ vows.describe('log4js-abspath').addBatch({
} }
} }
); );
fileAppender.configure({ filename: "whatever.log", maxLogSize: 10 }, { cwd: '/absolute/path/to' }); fileAppender.configure(
{
filename: "whatever.log",
maxLogSize: 10
},
{ cwd: '/absolute/path/to' }
);
return fileOpened; return fileOpened;
}, },
'should prepend options.cwd to config.filename': function(fileOpened) { 'should prepend options.cwd to config.filename': function(fileOpened) {