Skip to content

Commit b21cab9

Browse files
committed
Mock expect-error input to avoid errors in Action integration tests
1 parent 219a937 commit b21cab9

6 files changed

Lines changed: 6 additions & 2 deletions

lib/analyze-action-env.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-env.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-input.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-input.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action-env.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test("analyze action with RAM & threads from environment variables", async (t) =
4242
requiredInputStub.withArgs("upload-database").returns("false");
4343
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
4444
optionalInputStub.withArgs("cleanup-level").returns("none");
45+
optionalInputStub.withArgs("expect-error").returns("false");
4546
sinon.stub(util, "getGitHubVersion").resolves(gitHubVersion);
4647
setupActionsVars(tmpDir, tmpDir);
4748
mockFeatureFlagApiEndpoint(200, {});

src/analyze-action-input.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test("analyze action with RAM & threads from action inputs", async (t) => {
4242
requiredInputStub.withArgs("upload-database").returns("false");
4343
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
4444
optionalInputStub.withArgs("cleanup-level").returns("none");
45+
optionalInputStub.withArgs("expect-error").returns("false");
4546
sinon.stub(util, "getGitHubVersion").resolves(gitHubVersion);
4647
setupActionsVars(tmpDir, tmpDir);
4748
mockFeatureFlagApiEndpoint(200, {});

0 commit comments

Comments
 (0)