Mock expect-error input to avoid errors in Action integration tests
This commit is contained in:
parent
219a937551
commit
b21cab99b3
6 changed files with 6 additions and 2 deletions
|
|
@ -42,6 +42,7 @@ test("analyze action with RAM & threads from environment variables", async (t) =
|
|||
requiredInputStub.withArgs("upload-database").returns("false");
|
||||
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
|
||||
optionalInputStub.withArgs("cleanup-level").returns("none");
|
||||
optionalInputStub.withArgs("expect-error").returns("false");
|
||||
sinon.stub(util, "getGitHubVersion").resolves(gitHubVersion);
|
||||
setupActionsVars(tmpDir, tmpDir);
|
||||
mockFeatureFlagApiEndpoint(200, {});
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ test("analyze action with RAM & threads from action inputs", async (t) => {
|
|||
requiredInputStub.withArgs("upload-database").returns("false");
|
||||
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
|
||||
optionalInputStub.withArgs("cleanup-level").returns("none");
|
||||
optionalInputStub.withArgs("expect-error").returns("false");
|
||||
sinon.stub(util, "getGitHubVersion").resolves(gitHubVersion);
|
||||
setupActionsVars(tmpDir, tmpDir);
|
||||
mockFeatureFlagApiEndpoint(200, {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue