Changes after rebase

This commit is contained in:
Marc Mueller 2023-01-08 11:03:38 +01:00
parent 64ae8e04f8
commit ec9f13e3be
7 changed files with 34 additions and 20 deletions

View file

@ -214,7 +214,7 @@ test("Fail restore when fail on cache miss is enabled and primary key not found"
path: path,
key,
restoreKeys: [restoreKey],
failOnCacheMiss: "true"
failOnCacheMiss: true
});
const failedMock = jest.spyOn(core, "setFailed");
@ -229,7 +229,13 @@ test("Fail restore when fail on cache miss is enabled and primary key not found"
await run();
expect(restoreCacheMock).toHaveBeenCalledTimes(1);
expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [restoreKey]);
expect(restoreCacheMock).toHaveBeenCalledWith(
[path],
key,
[restoreKey],
{},
false
);
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(0);
@ -248,7 +254,7 @@ test("Fail restore when fail on cache miss is enabled and primary key doesn't ma
path: path,
key,
restoreKeys: [restoreKey],
failOnCacheMiss: "true"
failOnCacheMiss: true
});
const failedMock = jest.spyOn(core, "setFailed");
@ -263,7 +269,13 @@ test("Fail restore when fail on cache miss is enabled and primary key doesn't ma
await run();
expect(restoreCacheMock).toHaveBeenCalledTimes(1);
expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [restoreKey]);
expect(restoreCacheMock).toHaveBeenCalledWith(
[path],
key,
[restoreKey],
{},
false
);
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);