mirror of
https://github.com/actions/setup-node.git
synced 2025-07-04 00:24:58 +00:00
Merge 117e7f56a1
into 041bafb672
This commit is contained in:
commit
4d308b5122
3 changed files with 20 additions and 16 deletions
|
@ -135,10 +135,10 @@ describe('cache-restore', () => {
|
|||
await restoreCache(packageManager);
|
||||
expect(hashFilesSpy).toHaveBeenCalled();
|
||||
expect(infoSpy).toHaveBeenCalledWith(
|
||||
`Cache restored from key: node-cache-${platform}-${packageManager}-${fileHash}`
|
||||
`Cache restored from key: ${platform}-setup-node-${packageManager}-${fileHash}`
|
||||
);
|
||||
expect(infoSpy).not.toHaveBeenCalledWith(
|
||||
`${packageManager} cache is not found`
|
||||
`Cache not found for input keys: ${platform}-setup-node-${packageManager}-${fileHash}, ${platform}-setup-node-${packageManager}-, ${platform}-setup-node-`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
@ -165,7 +165,7 @@ describe('cache-restore', () => {
|
|||
await restoreCache(packageManager);
|
||||
expect(hashFilesSpy).toHaveBeenCalled();
|
||||
expect(infoSpy).toHaveBeenCalledWith(
|
||||
`${packageManager} cache is not found`
|
||||
`Cache not found for input keys: ${platform}-setup-node-${packageManager}-${fileHash}, ${platform}-setup-node-${packageManager}-, ${platform}-setup-node-`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue