Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 17 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 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 |