From 7fe619c58c7277e3aba885ab038a7b7c57705b29 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Fri, 14 Feb 2025 09:42:41 -0500 Subject: [PATCH] update mocks --- packages/cache/__tests__/restoreCacheV2.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cache/__tests__/restoreCacheV2.test.ts b/packages/cache/__tests__/restoreCacheV2.test.ts index d4edc2a4..64e9df15 100644 --- a/packages/cache/__tests__/restoreCacheV2.test.ts +++ b/packages/cache/__tests__/restoreCacheV2.test.ts @@ -115,7 +115,6 @@ test('restore with restore keys and no cache found', async () => { const paths = ['node_modules'] const key = 'node-test' const restoreKeys = ['node-'] - const logWarningMock = jest.spyOn(core, 'warning') jest .spyOn(CacheServiceClientJSON.prototype, 'GetCacheEntryDownloadURL') @@ -130,7 +129,7 @@ test('restore with restore keys and no cache found', async () => { const cacheKey = await restoreCache(paths, key, restoreKeys) expect(cacheKey).toBe(undefined) - expect(logWarningMock).toHaveBeenCalledWith( + expect(logDebugMock).toHaveBeenCalledWith( `Cache not found for keys: ${[key, ...restoreKeys].join(', ')}` ) })