1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-05-10 03:09:55 +02:00

Code review

This commit is contained in:
Marc Mueller 2023-03-09 11:00:37 +01:00
parent d57039cf5c
commit 84097c0606
7 changed files with 23 additions and 7 deletions

View file

@ -396,6 +396,8 @@ test("restore with lookup-only set", async () => {
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true");
expect(infoMock).toHaveBeenCalledWith(`Cache restored from key: ${key}`);
expect(infoMock).toHaveBeenCalledWith(
`Cache would have been restored from key: ${key}`
);
expect(failedMock).toHaveBeenCalledTimes(0);
});