mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 19:51:09 +02:00
commiter_date: fix github api request fallback
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@ -205,5 +205,19 @@ export const context = {
|
||||
};
|
||||
|
||||
export const getOctokit = jest.fn(() => ({
|
||||
request: () => Promise.resolve({data: {committer: {date: '2024-11-13T13:42:28Z'}}})
|
||||
rest: {
|
||||
repos: {
|
||||
getCommit: jest.fn(() =>
|
||||
Promise.resolve({
|
||||
data: {
|
||||
commit: {
|
||||
committer: {
|
||||
date: '2024-11-13T13:42:28Z'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
Reference in New Issue
Block a user