From 3e29e63694c646c5dd59e4739a6ef5e1ad35d084 Mon Sep 17 00:00:00 2001 From: Danny Gleckler Date: Fri, 9 Feb 2024 02:32:10 -0500 Subject: [PATCH] Fix mock name --- __tests__/restoreImpl.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/restoreImpl.test.ts b/__tests__/restoreImpl.test.ts index 2fee7cf..2f6d3a6 100644 --- a/__tests__/restoreImpl.test.ts +++ b/__tests__/restoreImpl.test.ts @@ -484,7 +484,7 @@ test("restore with save-always set", async () => { saveAlways: true }); - const setCacheHitOutputMock = jest.spyOn(core, "setOutput"); + const setSaveAlwaysOutputMock = jest.spyOn(core, "setOutput"); const restoreCacheMock = jest .spyOn(cache, "restoreCache") .mockImplementationOnce(() => { @@ -504,8 +504,8 @@ test("restore with save-always set", async () => { false ); - expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); - expect(setCacheHitOutputMock).toHaveBeenCalledWith( + expect(setSaveAlwaysOutputMock).toHaveBeenCalledTimes(1); + expect(setSaveAlwaysOutputMock).toHaveBeenCalledWith( "save-always-d18d746b9", "true" );