mirror of
https://gitea.com/actions/cache.git
synced 2025-08-14 15:56:04 +08:00
Fixed review comments and tests
This commit is contained in:
@@ -94,9 +94,7 @@ test("save with no primary key in state outputs warning", async () => {
|
||||
await run(new StateProvider());
|
||||
|
||||
expect(saveCacheMock).toHaveBeenCalledTimes(0);
|
||||
expect(logWarningMock).toHaveBeenCalledWith(
|
||||
`Error retrieving key from state.`
|
||||
);
|
||||
expect(logWarningMock).toHaveBeenCalledWith(`Key is not specified.`);
|
||||
expect(logWarningMock).toHaveBeenCalledTimes(1);
|
||||
expect(failedMock).toHaveBeenCalledTimes(0);
|
||||
});
|
||||
|
Reference in New Issue
Block a user