From 613474eb441d016bfbfd18247e2f6a35d1977995 Mon Sep 17 00:00:00 2001 From: wood1986 Date: Thu, 15 Aug 2013 22:45:56 +0800 Subject: [PATCH] Update layouts-test.js --- test/layouts-test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/layouts-test.js b/test/layouts-test.js index aee28dc..476628f 100644 --- a/test/layouts-test.js +++ b/test/layouts-test.js @@ -197,12 +197,6 @@ vows.describe('log4js layouts').addBatch({ '%r should output time only': function(args) { test(args, '%r', '14:18:30'); }, - '%d{ISO8601_WITH_TZ_OFFSET} should output time only': function(args) { - test(args, '%d{ISO8601_WITH_TZ_OFFSET}', '2010-12-05T14:18:30-0000'); - }, - '%d{yy.MM.dd.hh.mm.ss.sss} should output time only': function(args) { - test(args, '%d{yy.MM.dd.hh.mm.ss.SSS}', '10.12.05.14.18.30.045'); - }, '%p should output the log level': function(args) { test(args, '%p', 'DEBUG'); }, @@ -227,9 +221,11 @@ vows.describe('log4js layouts').addBatch({ test(args, '%d', '2010-12-05 14:18:30.045'); }, '%d should allow for format specification': function(args) { + test(args, '%d{ISO8601_WITH_TZ_OFFSET}', '2010-12-05T14:18:30-0000'); test(args, '%d{ISO8601}', '2010-12-05 14:18:30.045'); test(args, '%d{ABSOLUTE}', '14:18:30.045'); test(args, '%d{DATE}', '05 12 2010 14:18:30.045'); + test(args, '%d{yy MM dd hh mm ss}', '10 12 05 14 18 30'); test(args, '%d{yyyy MM dd}', '2010 12 05'); test(args, '%d{yyyy MM dd hh mm ss SSS}', '2010 12 05 14 18 30 045'); },