blob: ea0eb0499312eb9ba2683b2164ff0767fd0c0a61 (
plain)
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
|
import {LogService} from "./log.service";
describe('log service service', () => {
let logService : LogService;
beforeEach(() => {
logService = new LogService();
});
it('check all ILogger function are defined', ()=>{
expect(logService.log).toBeDefined();
expect(logService.assert).toBeDefined();
expect(logService.error).toBeDefined();
expect(logService.group).toBeDefined();
expect(logService.groupEnd).toBeDefined();
expect(logService.info).toBeDefined();
expect(logService.warn).toBeDefined();
});
it('test getPrefixLog function', ()=> {
let args = ['message', [1,2,3,4,5]];
let result = LogService.getPrefixLog(args);
expect(result).toBeDefined();
});
});
|