Skip to content

Commit

Permalink
test(segmented-control): enable form validation tests (#9206)
Browse files Browse the repository at this point in the history
Enable the form validation test utils for `segmented-control`.
  • Loading branch information
benelan authored Apr 26, 2024
1 parent e57e345 commit 23eb3a4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ describe("calcite-segmented-control", () => {
});

describe("is form-associated", () => {
const formAssociatedOptions = { testValue: "2" };

describe("unselected value", () => {
formAssociated(
html`
Expand All @@ -414,7 +412,7 @@ describe("calcite-segmented-control", () => {
<calcite-segmented-control-item id="child-3" value="3">three</calcite-segmented-control-item>
</calcite-segmented-control>
`,
formAssociatedOptions,
{ testValue: 2, validation: true, changeValueKeys: ["Space"] },
);
});

Expand All @@ -427,7 +425,7 @@ describe("calcite-segmented-control", () => {
<calcite-segmented-control-item id="child-3" value="3">three</calcite-segmented-control-item>
</calcite-segmented-control>
`,
formAssociatedOptions,
{ testValue: 2 },
);
});
});
Expand Down

0 comments on commit 23eb3a4

Please sign in to comment.