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 {Timestamp} from '../../src/transformations/timestamp.js';
|
||||
import {Timestamp} from '../../src/index.js';
|
||||
|
||||
@suite()
|
||||
export class TimeStampSpec {
|
||||
@test
|
||||
default() {
|
||||
describe('timestamp', function () {
|
||||
it('should contain Z', function () {
|
||||
const transformation = new Timestamp();
|
||||
|
||||
expect(transformation.transform('ERROR', 'Foobar')).to.be.contain(`Z`);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user