tests/unit/utils.test.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
mnd 0
bc 0
fnc 2
dl 0
loc 16
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 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