Skip to content

Commit b6dabc5

Browse files
committed
tests: debug, trace
1 parent 83d06c1 commit b6dabc5

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

tests/config.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ import config from '../src/config';
22

33
describe('config', () => {
44
test('should set emoji by type', () => {
5-
const expected = config.setEmoji({ type: 'info', emoji: '🦁' });
6-
expect(expected).toEqual('🦁');
5+
expect(config.setEmoji('info', '🦁')).toEqual('🦁');
76
});
87

98
test('should get emoji by type', () => {
10-
const expected = config.getEmoji('error');
11-
console.log(expected);
12-
expect(expected).toEqual('🚫');
9+
expect(config.getEmoji('error')).toEqual('🚫');
1310
});
1411
});

tests/logger.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,16 @@ describe('Logger', () => {
2424
'🚫 Error message example'
2525
);
2626
});
27+
28+
test('should create Logger.trace', () => {
29+
expect(Logger.trace('Trace message example')).toEqual(
30+
'🐾 Trace message example'
31+
);
32+
});
33+
34+
test('should create Logger.debug', () => {
35+
expect(Logger.debug('Debug message example')).toEqual(
36+
'🐛 Debug message example'
37+
);
38+
});
2739
});

0 commit comments

Comments
 (0)