Issues (7)

tests/package/test-winston.test.js (2 issues)

1
import { createLogger, format } from 'winston';
2
import { assert } from 'chai';
3
import transport from '../entry';
4
5
suite('Winston');
6
7
test('Positive: check transport', function () {
8
    const t = new transport();
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like transport should be capitalized.
Loading history...
9
10
    assert.isFunction(t.log);
11
});
12
13
test('Positive: createLogger', function () {
14
    const logger = createLogger({
15
        level  : 'debug',
16
        levels : {
17
            error   : 0,
18
            warn    : 1,
19
            info    : 2,
20
            notice  : 3,
21
            verbose : 4,
22
            debug   : 5
23
        },
24
        format : format.combine(
25
            format.timestamp(),
26
            format.json()
27
        ),
28
        transports : [ new transport() ]
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like transport should be capitalized.
Loading history...
29
    });
30
31
    assert.exists(logger);
32
});
33