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')
, assert = require('assert')
, sandbox = require('sandboxed-module');
@ -10,8 +11,7 @@ vows.describe('log4js-abspath').addBatch({
'../lib/log4js',
{ requires:
{ './appenders/fake':
{
name: "fake",
{ name: "fake",
appender: function() {},
configure: function(configuration, options) {
appenderOptions = options;
@ -47,8 +47,8 @@ vows.describe('log4js-abspath').addBatch({
'../lib/appenders/file',
{ requires:
{ '../streams':
{
RollingFileStream: function(file) {
{ RollingFileStream:
function(file) {
fileOpened = file;
return {
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;
},
'should prepend options.cwd to config.filename': function(fileOpened) {