fix: fallback to author date and current date

Signed-off-by: Trim21 <trim21.me@gmail.com>
This commit is contained in:
Trim21 2024-11-19 23:51:15 +08:00
parent 359e915ab3
commit c8b97615be
No known key found for this signature in database
GPG key ID: 809F01CFB0A797FB
4 changed files with 14 additions and 4 deletions

View file

@ -205,5 +205,5 @@ export const context = {
};
export const getOctokit = jest.fn(() => ({
request: () => Promise.resolve({data: {committer: {date: '2024-11-13T13:42:28Z'}}})
request: () => Promise.resolve({data: {commit: {committer: {date: '2024-11-13T13:42:28Z'}}}})
}));