Fixed test cases

This commit is contained in:
Sankalp Kotewar 2023-01-03 10:22:38 +00:00 committed by GitHub
parent 5b7eeecaeb
commit 667e98af5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 13 deletions

View file

@ -15,6 +15,10 @@ beforeAll(() => {
return testUtils.getInput(name);
});
jest.spyOn(core, "getState").mockImplementation(name => {
return jest.requireActual("@actions/core").getState(name);
});
jest.spyOn(actionUtils, "getInputAsArray").mockImplementation(
(name, options) => {
return jest