Add log class and add some functins
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Add jest for test units Updated the package and lib
This commit is contained in:
23
tests/log.test.ts
Normal file
23
tests/log.test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import Log from '../src/log/Log';
|
||||
|
||||
describe('loggin 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'
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user