Fix mock name

This commit is contained in:
Danny Gleckler 2024-02-09 02:32:10 -05:00
parent 2d00cd51fd
commit 3e29e63694

View File

@ -484,7 +484,7 @@ test("restore with save-always set", async () => {
saveAlways: true saveAlways: true
}); });
const setCacheHitOutputMock = jest.spyOn(core, "setOutput"); const setSaveAlwaysOutputMock = jest.spyOn(core, "setOutput");
const restoreCacheMock = jest const restoreCacheMock = jest
.spyOn(cache, "restoreCache") .spyOn(cache, "restoreCache")
.mockImplementationOnce(() => { .mockImplementationOnce(() => {
@ -504,8 +504,8 @@ test("restore with save-always set", async () => {
false false
); );
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); expect(setSaveAlwaysOutputMock).toHaveBeenCalledTimes(1);
expect(setCacheHitOutputMock).toHaveBeenCalledWith( expect(setSaveAlwaysOutputMock).toHaveBeenCalledWith(
"save-always-d18d746b9", "save-always-d18d746b9",
"true" "true"
); );