mirror of
https://github.com/actions/setup-node.git
synced 2026-07-09 17:41:38 +00:00
Fix debug message for unchanged cache validation in tests
This commit is contained in:
@@ -343,8 +343,9 @@ describe('run', () => {
|
|||||||
expect(getInputSpy).not.toHaveBeenCalled();
|
expect(getInputSpy).not.toHaveBeenCalled();
|
||||||
expect(getStateSpy).toHaveBeenCalledTimes(4);
|
expect(getStateSpy).toHaveBeenCalledTimes(4);
|
||||||
expect(getCommandOutputSpy).toHaveBeenCalledTimes(0);
|
expect(getCommandOutputSpy).toHaveBeenCalledTimes(0);
|
||||||
expect(debugSpy).toHaveBeenCalledTimes(0);
|
expect(debugSpy).toHaveBeenLastCalledWith(
|
||||||
expect(infoSpy).not.toHaveBeenCalledWith(
|
`Cache was not saved for the key: ${yarnFileHash}`
|
||||||
|
); expect(infoSpy).not.toHaveBeenCalledWith(
|
||||||
`Cache hit occurred on the primary key ${npmFileHash}, not saving cache.`
|
`Cache hit occurred on the primary key ${npmFileHash}, not saving cache.`
|
||||||
);
|
);
|
||||||
expect(saveCacheSpy).toHaveBeenCalled();
|
expect(saveCacheSpy).toHaveBeenCalled();
|
||||||
|
|||||||
Reference in New Issue
Block a user