Skip to content

Commit 91be7c7

Browse files
committed
Integration test covering error reported in #977
1 parent 45e904b commit 91be7c7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { promiseError } from '@kwsites/promise-result';
2+
import { newSimpleGit } from '@simple-git/test-utils';
3+
4+
describe('log-numstat', function () {
5+
it('custom format and date range should not fail when also setting numstat', async () => {
6+
const ac = new AbortController()
7+
const log = newSimpleGit(__dirname, {
8+
abort: ac.signal,
9+
}).log({ format: {
10+
H: '%H',
11+
h: '%h',
12+
P: '%P',
13+
p: '%p',
14+
aI: '%aI',
15+
s: '%s',
16+
D: '%D',
17+
b: '%b',
18+
an: '%an',
19+
ae: '%ae'
20+
}, '--all': null, '--since': '2024-02-04', '--numstat': null});
21+
22+
setTimeout(() => ac.abort(), 500);
23+
24+
expect(await promiseError(log)).toBeUndefined();
25+
});
26+
});

0 commit comments

Comments
 (0)