From d2f30b473fa27d34f2e324936f162ed35c7b1370 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 14 Jun 2013 07:28:55 +1000 Subject: [PATCH] added test to improve levels coverage --- test/levels-test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/levels-test.js b/test/levels-test.js index 2637d39..99dd1fc 100644 --- a/test/levels-test.js +++ b/test/levels-test.js @@ -363,6 +363,12 @@ vows.describe('levels').addBatch({ assertThat(info).isLessThanOrEqualTo(['warn', 'ERROR', 'Fatal', 'off']); } }, + 'isEqualTo': { + topic: levels.INFO, + 'should handle string arguments': function(info) { + assertThat(info).isEqualTo(["info", "INFO", "iNfO"]); + } + }, 'toLevel': { 'with lowercase argument': { topic: levels.toLevel("debug"),