cubetiq-ts-utils/tests/log.test.ts
Sambo Chea 478c7ab38f
Some checks failed
continuous-integration/drone/push Build is failing
Fixed the log class and updated tests
2021-03-10 21:55:41 +07:00

24 lines
483 B
TypeScript

import Index from '../src/Log';
describe('logging into console', function () {
it('info', function () {
Index.info('I am an info!');
});
it('warn', function () {
Index.info('I am a warn!');
});
it('error', function () {
Index.info('I am an error!');
});
it('loggable', function () {
Index.log({
type: 'info',
from: 'log.test.ts',
data: 'I am loggable called'
});
});
});