Skip to content

Commit

Permalink
Integration test covering error reported in #977
Browse files Browse the repository at this point in the history
  • Loading branch information
steveukx committed Mar 9, 2024
1 parent 45e904b commit 91be7c7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions simple-git/test/integration/log-numstat.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { promiseError } from '@kwsites/promise-result';
import { newSimpleGit } from '@simple-git/test-utils';

describe('log-numstat', function () {
it('custom format and date range should not fail when also setting numstat', async () => {
const ac = new AbortController()
const log = newSimpleGit(__dirname, {
abort: ac.signal,
}).log({ format: {
H: '%H',
h: '%h',
P: '%P',
p: '%p',
aI: '%aI',
s: '%s',
D: '%D',
b: '%b',
an: '%an',
ae: '%ae'
}, '--all': null, '--since': '2024-02-04', '--numstat': null});

setTimeout(() => ac.abort(), 500);

expect(await promiseError(log)).toBeUndefined();
});
});

0 comments on commit 91be7c7

Please sign in to comment.