mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 00:33:57 +08:00
Add unit tests for actionUtils
This commit is contained in:
parent
bb828da54c
commit
8041787e97
4 changed files with 233 additions and 2 deletions
|
@ -299,7 +299,7 @@ test("restore with a pull request event and cache found", async () => {
|
|||
const cacheEntry: ArtifactCacheEntry = {
|
||||
cacheKey: key,
|
||||
scope: "refs/heads/master",
|
||||
archiveLocation: "https://www.example.com/download"
|
||||
archiveLocation: "www.actionscache.test/download"
|
||||
};
|
||||
const getCacheMock = jest.spyOn(cacheHttpClient, "getCacheEntry");
|
||||
getCacheMock.mockImplementation(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue