UNPKG

vvlad1973-telegram-framework

Version:
21 lines (13 loc) 483 B
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('*')) }); });