fix(core): update
This commit is contained in:
@ -9,7 +9,12 @@ tap.test('should produce instance of Smartlog', async () => {
|
||||
});
|
||||
|
||||
tap.test('should enable console logging', async () => {
|
||||
defaultLogger.enableConsole();
|
||||
defaultLogger.enableConsole({
|
||||
captureAll: true
|
||||
});
|
||||
console.log('this is a normal log that should be captured');
|
||||
console.log(new Error('hi there'));
|
||||
defaultLogger.log('info', 'this should only be printed once');
|
||||
});
|
||||
|
||||
tap.test('should be able to log things', async () => {
|
||||
|
Reference in New Issue
Block a user