Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 16 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { assert } from 'chai'; |
||
2 | import { dumpCommand } from 'utils'; |
||
3 | import factory from '../Test'; |
||
4 | |||
5 | suite('Utils'); |
||
6 | |||
7 | before(async function () { |
||
8 | await factory.cleanup(); |
||
9 | }); |
||
10 | |||
11 | test('parse telegram commands', async function () { |
||
12 | assert.deepOwnInclude(dumpCommand('/url "my cool template"'), { |
||
13 | command : 'url', |
||
14 | template : 'my cool template' |
||
15 | }); |
||
16 | }); |
||
17 |