mirror of
https://github.com/actions/cache.git
synced 2025-07-10 02:38:02 +02: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