2021-03-10 21:55:41 +07:00
|
|
|
import Index from '../src/Log';
|
2021-03-10 20:23:49 +07:00
|
|
|
|
2021-03-10 21:50:33 +07:00
|
|
|
describe('logging into console', function () {
|
2021-03-10 20:23:49 +07:00
|
|
|
it('info', function () {
|
2021-03-10 21:55:41 +07:00
|
|
|
Index.info('I am an info!');
|
2021-03-10 20:23:49 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
it('warn', function () {
|
2021-03-10 21:55:41 +07:00
|
|
|
Index.info('I am a warn!');
|
2021-03-10 20:23:49 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
it('error', function () {
|
2021-03-10 21:55:41 +07:00
|
|
|
Index.info('I am an error!');
|
2021-03-10 20:23:49 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
it('loggable', function () {
|
2021-03-10 21:55:41 +07:00
|
|
|
Index.log({
|
2021-03-10 20:23:49 +07:00
|
|
|
type: 'info',
|
|
|
|
from: 'log.test.ts',
|
|
|
|
data: 'I am loggable called'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|