Skip to content

Commit aaedc6f

Browse files
log.test.ts
1 parent daf0751 commit aaedc6f

1 file changed

Lines changed: 83 additions & 3 deletions

File tree

test/unit/log.test.ts

Lines changed: 83 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,89 @@
1-
import LogWrapper from '../../src/log'
1+
import Logger from '../../src/log'
22
jest.mock('rdflib')
33
jest.mock('solid-auth-client')
44

5-
describe('Log Wrapper', () => {
5+
describe('Logger', () => {
66
it('exists', () => {
7-
expect(LogWrapper).toBeInstanceOf(Object)
7+
expect(Logger).toBeInstanceOf(Object)
8+
})
9+
})
10+
describe('Logger.msg', () => {
11+
it('exists', () => {
12+
expect(Logger.msg).toBeInstanceOf(Function)
13+
})
14+
it('runs', () => {
15+
expect(Logger.msg('')).toEqual(undefined)
16+
})
17+
})
18+
19+
describe('Logger.warn', () => {
20+
it('exists', () => {
21+
expect(Logger.warn).toBeInstanceOf(Function)
22+
})
23+
it('runs', () => {
24+
expect(Logger.warn('')).toEqual(undefined)
25+
})
26+
})
27+
28+
describe('Logger.debug', () => {
29+
it('exists', () => {
30+
expect(Logger.debug).toBeInstanceOf(Function)
31+
})
32+
it('runs', () => {
33+
expect(Logger.debug('')).toEqual(undefined)
34+
})
35+
})
36+
37+
describe('Logger.info', () => {
38+
it('exists', () => {
39+
expect(Logger.info).toBeInstanceOf(Function)
40+
})
41+
it('runs', () => {
42+
expect(Logger.info('')).toEqual(undefined)
43+
})
44+
})
45+
46+
describe('Logger.error', () => {
47+
it('exists', () => {
48+
expect(Logger.error).toBeInstanceOf(Function)
49+
})
50+
it('runs', () => {
51+
expect(Logger.error('')).toEqual(undefined)
52+
})
53+
})
54+
55+
describe('Logger.success', () => {
56+
it('exists', () => {
57+
expect(Logger.success).toBeInstanceOf(Function)
58+
})
59+
it('runs', () => {
60+
expect(Logger.success('')).toEqual(undefined)
61+
})
62+
})
63+
64+
describe('Logger.clear', () => {
65+
it('exists', () => {
66+
expect(Logger.clear).toBeInstanceOf(Function)
67+
})
68+
it('runs', () => {
69+
expect(Logger.clear('')).toEqual(undefined)
70+
})
71+
})
72+
73+
describe('Logger.setLevel', () => {
74+
it('exists', () => {
75+
expect(Logger.setLevel).toBeInstanceOf(Function)
76+
})
77+
it('runs', () => {
78+
expect(Logger.setLevel('')).toEqual(undefined)
79+
})
80+
})
81+
82+
describe('Logger.dumpHTML', () => {
83+
it('exists', () => {
84+
expect(Logger.dumpHTML).toBeInstanceOf(Function)
85+
})
86+
it('runs', () => {
87+
expect(Logger.dumpHTML()).toEqual(undefined)
888
})
989
})

0 commit comments

Comments
 (0)