Update layouts-test.js

This commit is contained in:
wood1986 2013-08-15 22:37:01 +08:00
parent 9e72189574
commit 069ed31759

View File

@ -198,10 +198,10 @@ vows.describe('log4js layouts').addBatch({
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-11-05T14:18:30');
test(args, '%d{ISO8601_WITH_TZ_OFFSET}', '2010-12-05T14:18:30');
},
'%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.11.05.14.18.30.045');
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');