vvlad1973-telegram-framework
Version:
Current version: *7.9.5*
21 lines (13 loc) • 483 B
JavaScript
import assert from 'assert'
import { Filter } from '../index.js'
describe('Tests of class Filter', () => {
it('Test method: asString()', () => {
let filter = new Filter('command', 'contents', 'params', 'chat');
console.log(filter.asString());
assert.equal(filter.asString(), 'command:[contents]?[params]@chat');
});
it/* .only */('Test method: parse()', () => {
let filter = new Filter();
console.log(filter.parse('*'))
});
});