/
log.js
30 lines (28 loc) · 891 Bytes
/
log.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var vows = require('vows'),
assert = require('assert'),
log = require('../lib/log');
vows.describe('log').addBatch({
'Should be loaded': {
topic: function () {
return log
},
'should have log method': function (topic) {
assert.isFunction(topic.log);
},
'should have info method': function (topic) {
assert.isFunction(topic.info);
},
'should have debug method': function (topic) {
assert.isFunction(topic.debug);
},
'should have warn method': function (topic) {
assert.isFunction(topic.warn);
},
'should have error method': function (topic) {
assert.isFunction(topic.error);
},
'should have bail method': function (topic) {
assert.isFunction(topic.bail);
},
}
}).export(module);