feat: add method to get commit date from git

Signed-off-by: Trim21 <trim21.me@gmail.com>
This commit is contained in:
Trim21
2024-11-11 00:50:46 +08:00
parent 37b0f81ca2
commit 31cb9c3bde
2 changed files with 11 additions and 0 deletions

View File

@@ -279,3 +279,10 @@ describe('tag', () => {
});
});
});
describe('getCommitDate', () => {
it('head', async () => {
const date = await Git.commitDate('HEAD');
await expect(date).toBeInstanceOf(Date);
});
});