mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: tests
This commit is contained in:
@@ -13,15 +13,12 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {AddLogLevel} from '../../src/transformations/add-log-level.js';
|
||||
import {AddLogLevel} from '../../src/index.js';
|
||||
|
||||
@suite()
|
||||
export class AddLogLevelSpec {
|
||||
@test
|
||||
transform() {
|
||||
describe('add log level', function () {
|
||||
it('should transform', function () {
|
||||
const transformation = new AddLogLevel();
|
||||
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.equal('[ERROR] Foobar');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user