Reconfigure catch block

This commit is contained in:
Sampark Sharma
2022-12-09 09:33:59 +00:00
committed by GitHub
parent d31c2dd88d
commit 7a532d03f4
3 changed files with 21 additions and 24 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 () => {
throw new Error('Cache not found.')
return Promise.resolve(null)
})
.mockImplementationOnce(async () => {
return Promise.resolve(cacheEntry)