mirror of
https://github.com/actions/cache.git
synced 2026-06-14 17:04:10 +08:00
Update tests for deleteCacheByKey.
And rebuild. Signed-off-by: Gregorio Litenstein <g.litenstein@gmail.com>
This commit is contained in:
@@ -492,7 +492,11 @@ test("save with cache hit and refresh-cache will try to delete and re-create ent
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
`Succesfully deleted cache with key: ${primaryKey}`
|
||||
expect.stringMatching(
|
||||
new RegExp(
|
||||
`Succesfully deleted cache with key: ${primaryKey}, id: \\d+`
|
||||
)
|
||||
)
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
3,
|
||||
@@ -565,7 +569,11 @@ test("Granular save will use lookup to determine if cache needs to be updated or
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
`Succesfully deleted cache with key: ${primaryKey}`
|
||||
expect.stringMatching(
|
||||
new RegExp(
|
||||
`Succesfully deleted cache with key: ${primaryKey}, id: \\d+`
|
||||
)
|
||||
)
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
3,
|
||||
|
||||
Reference in New Issue
Block a user