mirror of
https://github.com/actions/cache.git
synced 2026-07-03 21:59:30 +00:00
Implemented
This commit is contained in:
parent
88522ab9f3
commit
f12187b90c
29 changed files with 272142 additions and 230372 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import * as cache from "../src/backend";
|
||||
import { Events, Inputs, RefKey } from "../src/constants";
|
||||
import run from "../src/save";
|
||||
import * as actionUtils from "../src/utils/actionUtils";
|
||||
import * as testUtils from "../src/utils/testUtils";
|
||||
|
||||
jest.mock("@actions/core");
|
||||
jest.mock("@actions/cache");
|
||||
jest.mock("../src/backend");
|
||||
jest.mock("../src/utils/actionUtils");
|
||||
|
||||
beforeAll(() => {
|
||||
|
|
@ -109,7 +109,8 @@ test("save with valid inputs uploads a cache", async () => {
|
|||
{
|
||||
uploadChunkSize: 4000000
|
||||
},
|
||||
false
|
||||
{ credentials: { accessKeyId: "", secretAccessKey: "" }, region: "" },
|
||||
""
|
||||
);
|
||||
|
||||
expect(failedMock).toHaveBeenCalledTimes(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue