Skip to content

Commit

Permalink
Update code-build-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyong-ty authored Sep 10, 2024
1 parent 800428f commit dcf01b5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/code-build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,19 @@ describe("inputs2Parameters", () => {
expect(test).to.not.haveOwnProperty("sourceVersion");
});

it("can process source-type-override and source-location-override", () => {
const test = inputs2Parameters({
projectName,
sourceVersion: sha,
owner: "owner",
repo: "repo",
sourceTypeOverride: "S3",
sourceLocationOverride: "bucket-name/object-name",
});
expect(test).to.haveOwnProperty("sourceTypeOverride").and.to.equal("S3");
expect(test).to.haveOwnProperty("sourceLocationOverride").and.to.equal("bucket-name/object-name");
});

it("can process disable-github-env-vars", () => {
process.env[`GITHUB_REPOSITORY`] = repoInfo;
process.env[`GITHUB_SHA`] = sha;
Expand Down

0 comments on commit dcf01b5

Please sign in to comment.