added test to improve levels coverage

This commit is contained in:
Gareth Jones 2013-06-14 07:28:55 +10:00
parent fa179ecba2
commit d2f30b473f

View File

@ -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"),