From 6e7348f8d8c3b0506f0efc2d988d3f156703329f Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 9 May 2012 16:48:52 +1000 Subject: [PATCH] all tests pass --- test/logging.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/logging.js b/test/logging.js index a5a29eb..71df36a 100644 --- a/test/logging.js +++ b/test/logging.js @@ -503,15 +503,14 @@ vows.describe('log4js').addBatch({ logger = log4js.getLogger('a-test'); logger.info("info1"); logger.debug("debug2 - should be ignored"); - delete fakeFS.config.levels; + fakeFS.config.levels['a-test'] = "DEBUG"; setIntervalCallback(); logger.info("info3"); logger.debug("debug4"); - return [ pathsChecked, logEvents, modulePath ]; + return logEvents; }, - 'should configure log4js from first log4js.json found': function(args) { - var logEvents = args[1]; + 'should configure log4js from first log4js.json found': function(logEvents) { assert.equal(logEvents.length, 3); assert.equal(logEvents[0].data[0], 'info1'); assert.equal(logEvents[1].data[0], 'info3');