Skip to content

Commit dcf01b5

Browse files
authored
Update code-build-test.js
1 parent 800428f commit dcf01b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/code-build-test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,19 @@ describe("inputs2Parameters", () => {
420420
expect(test).to.not.haveOwnProperty("sourceVersion");
421421
});
422422

423+
it("can process source-type-override and source-location-override", () => {
424+
const test = inputs2Parameters({
425+
projectName,
426+
sourceVersion: sha,
427+
owner: "owner",
428+
repo: "repo",
429+
sourceTypeOverride: "S3",
430+
sourceLocationOverride: "bucket-name/object-name",
431+
});
432+
expect(test).to.haveOwnProperty("sourceTypeOverride").and.to.equal("S3");
433+
expect(test).to.haveOwnProperty("sourceLocationOverride").and.to.equal("bucket-name/object-name");
434+
});
435+
423436
it("can process disable-github-env-vars", () => {
424437
process.env[`GITHUB_REPOSITORY`] = repoInfo;
425438
process.env[`GITHUB_SHA`] = sha;

0 commit comments

Comments
 (0)