Address review comments

This commit is contained in:
Sampark Sharma
2022-12-07 08:27:08 +00:00
committed by GitHub
parent d1094e1523
commit d79a09bc0e
3 changed files with 37 additions and 22 deletions

View File

@@ -174,7 +174,7 @@ test('restore with zstd as default but gzip compressed cache found on windows',
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
getCacheMock
.mockImplementationOnce(async () => {
return Promise.resolve(<ArtifactCacheEntry>{})
throw new Error('Cache not found.')
})
.mockImplementationOnce(async () => {
return Promise.resolve(cacheEntry)