From cd286fa25fdada5e657d03afcfe57a5cc1201813 Mon Sep 17 00:00:00 2001 From: wood1986 Date: Sun, 18 Aug 2013 01:39:37 +0800 Subject: [PATCH] Update layouts-test.js --- test/layouts-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/layouts-test.js b/test/layouts-test.js index 476628f..c355bdd 100644 --- a/test/layouts-test.js +++ b/test/layouts-test.js @@ -209,6 +209,9 @@ vows.describe('log4js layouts').addBatch({ '%n should output a new line': function(args) { test(args, '%n', '\n'); }, + '%h should output hostname' : function(args) { + test(args, '%h', require('os').hostname().toString()); + }, '%c should handle category names like java-style package names': function(args) { test(args, '%c{1}', 'tests'); test(args, '%c{2}', 'of.tests');