mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
refactor: build system
This commit is contained in:
@@ -19,7 +19,7 @@ import {AddLogLevel} from '../../src/transformations/add-log-level.js';
|
||||
@suite()
|
||||
export class AddLogLevelSpec {
|
||||
@test
|
||||
'transform'() {
|
||||
transform() {
|
||||
const transformation = new AddLogLevel();
|
||||
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.equal('[ERROR] Foobar');
|
||||
|
||||
@@ -19,10 +19,12 @@ import {Colorize} from '../../src/transformations/colorize.js';
|
||||
@suite()
|
||||
export class ColorizeSpec {
|
||||
@test
|
||||
'transform'() {
|
||||
transform() {
|
||||
const transformation = new Colorize();
|
||||
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.equal('\u001b[1m\u001b[31mFoobar\u001b[39m\u001b[22m');
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.equal(
|
||||
'\u001b[1m\u001b[31mFoobar\u001b[39m\u001b[22m',
|
||||
);
|
||||
expect(transformation.transform('LOG', 'Foobar')).to.be.equal('\u001b[37mFoobar\u001b[39m');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,7 @@ import {Timestamp} from '../../src/transformations/timestamp.js';
|
||||
@suite()
|
||||
export class TimeStampSpec {
|
||||
@test
|
||||
'default'() {
|
||||
|
||||
default() {
|
||||
const transformation = new Timestamp();
|
||||
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.contain(`Z`);
|
||||
|
||||
Reference in New Issue
Block a user