Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Update pipeline.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisseah committed Apr 13, 2020
1 parent df55884 commit 428023d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/project/pipeline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
installLifecyclePipeline,
CommandOptions,
} from "./pipeline";
import { getErrorMessage } from "../../lib/errorBuilder";
import { deepClone } from "../../lib/util";

beforeAll(() => {
Expand Down Expand Up @@ -233,7 +234,10 @@ describe("installLifecyclePipeline and execute tests", () => {
expect(e).toBeDefined();
const builtDefnString = JSON.stringify({ fakeProperty: "temp" });
expect(e.message).toBe(
`project-pipeline-err-invalid-build-definition: Invalid BuildDefinition created, parameter 'id' is missing from ${builtDefnString}`
getErrorMessage({
errorKey: "project-pipeline-err-invalid-build-definition",
values: [builtDefnString],
})
);
}
});
Expand Down

0 comments on commit 428023d

Please sign in to comment.