mirror of
https://github.com/actions/setup-node.git
synced 2026-08-25 00:29:21 +00:00
Fix debug message for unchanged cache validation in tests
This commit is contained in:
parent
0f24784737
commit
cbc6bdf773
1 changed files with 3 additions and 2 deletions
|
|
@ -343,8 +343,9 @@ describe('run', () => {
|
|||
expect(getInputSpy).not.toHaveBeenCalled();
|
||||
expect(getStateSpy).toHaveBeenCalledTimes(4);
|
||||
expect(getCommandOutputSpy).toHaveBeenCalledTimes(0);
|
||||
expect(debugSpy).toHaveBeenCalledTimes(0);
|
||||
expect(infoSpy).not.toHaveBeenCalledWith(
|
||||
expect(debugSpy).toHaveBeenLastCalledWith(
|
||||
`Cache was not saved for the key: ${yarnFileHash}`
|
||||
); expect(infoSpy).not.toHaveBeenCalledWith(
|
||||
`Cache hit occurred on the primary key ${npmFileHash}, not saving cache.`
|
||||
);
|
||||
expect(saveCacheSpy).toHaveBeenCalled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue