This commit is contained in:
Salman Muin Kayser Chishti
2025-09-04 15:24:57 +01:00
parent b738f10ef3
commit 48e42b1fdd
5 changed files with 17 additions and 16 deletions
+3 -1
View File
@@ -244,7 +244,9 @@ test('save with server error should fail', async () => {
// Mock the FinalizeCacheEntryUpload to succeed (since the error should happen in saveCache)
jest
.spyOn(CacheServiceClientJSON.prototype, 'FinalizeCacheEntryUpload')
.mockReturnValue(Promise.resolve({ok: true, entryId: '4', message: 'Success'}))
.mockReturnValue(
Promise.resolve({ok: true, entryId: '4', message: 'Success'})
)
const createTarMock = jest.spyOn(tar, 'createTar')