-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.js
More file actions
32 lines (26 loc) · 926 Bytes
/
Copy pathtest.js
File metadata and controls
32 lines (26 loc) · 926 Bytes
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
30
31
32
'use strict';
require('mocha');
const assert = require('assert');
const log = require('./');
describe('log-utils', function() {
it('should export a function', function() {
assert(log);
assert.equal(typeof log, 'function');
});
it('should expose getters', function() {
assert(log.symbols);
assert(log.symbols.hasOwnProperty('check'));
assert(log.symbols.hasOwnProperty('cross'));
assert(log.symbols.hasOwnProperty('check'));
assert(log.symbols.hasOwnProperty('info'));
assert(log.symbols.hasOwnProperty('warning'));
assert.equal(typeof log.green, 'function');
assert.equal(typeof log.cyan, 'function');
assert.equal(typeof log.yellow, 'function');
assert.equal(typeof log.red, 'function');
assert(log.hasOwnProperty('error'));
assert(log.hasOwnProperty('info'));
assert(log.hasOwnProperty('success'));
assert(log.hasOwnProperty('warning'));
});
});