Fixed the ts library and add rollup config for build
All checks were successful
continuous-integration/drone/push Build is passing

Fixed log tests and updated config
This commit is contained in:
2021-03-11 11:32:42 +07:00
parent f2f0c823e2
commit b1b37b069f
7 changed files with 56 additions and 17 deletions

View File

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