mirror of
https://github.com/actions/cache.git
synced 2026-10-01 00:51:42 +00:00
Fixed review comments and tests
This commit is contained in:
1 parent
5e7f2c1182
commit
91d7bd61be
10 files changed
+76
-72
No files matched your search
@@ -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