Skip to content

Commit 0e508f9

Browse files
authored
Add test for #957 (#960)
1 parent a6f6a1d commit 0e508f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/frontend/pipeline-graph-view/pipeline-graph/main/support/convertLabelToTooltip.spec.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { convertLabelToTooltip } from "./convertLabelToTooltip.tsx";
33
describe("convertLabelToTooltip", () => {
44
it("converts matrix labels to a tooltip", () => {
55
const result = convertLabelToTooltip(
6-
"Matrix - PKR_VAR_architecture = 'amd64', another = 'amd64', PKR_VAR_agent = 'ubuntu-20', PKR_VAR_image_type = 'amazon-ebs'",
6+
"Matrix - PKR_VAR_architecture = 'amd64', another = 'amd64', PKR_VAR_agent = 'ubuntu-20', PKR_VAR_image_type = 'amazon-ebs', profiles = 'B,C'",
77
);
88

99
const expectedResult = [
@@ -23,6 +23,11 @@ describe("convertLabelToTooltip", () => {
2323
key: "PKR_VAR_image_type",
2424
value: "amazon-ebs",
2525
},
26+
// ISSUE #957
27+
{
28+
key: "profiles",
29+
value: "B,C",
30+
},
2631
];
2732

2833
expect(result).toEqual(expectedResult);

0 commit comments

Comments
 (0)