Test Failed
Push — master ( 9ba74a...731ad5 )
by Dmytro
01:40
created

tests/utils/gitUtils.test.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 17
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
mnd 0
bc 0
fnc 1
dl 0
loc 17
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import path from 'path';
2
import { assert } from 'chai';
3
import { load } from '../utils';
4
import { testsRootFolder } from '../constants';
5
6
const { getGitCommit } = load('utils/gitUtils');
7
8
suite('gitUtils');
9
10
test('Positive: getGitCommit', async function () {
11
    const dir = path.join(testsRootFolder, 'files/repo');
12
13
    assert.equal(
14
        await getGitCommit(dir),
15
        '1c3e319b380a9572a80499984ba6f0c3341a3772'
16
    );
17
});
18