cubetiq-ts-utils/tests/log.test.ts
Sambo Chea b1b37b069f
All checks were successful
continuous-integration/drone/push Build is passing
Fixed the ts library and add rollup config for build
Fixed log tests and updated config
2021-03-11 11:32:42 +07:00

24 lines
472 B
TypeScript

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