Skip to content

Commit c67e236

Browse files
committed
test(checkbox-radio-selection-web): update test
1 parent 58a2793 commit c67e236

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/pluggableWidgets/checkbox-radio-selection-web/src/__tests__/CheckboxRadioSelection.spec.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jest.mock("../helpers/getSelector", () => ({
2929
_optionToValue: jest.fn(),
3030
_valueToOption: jest.fn()
3131
},
32+
controlType: "radio",
3233
caption: {
33-
get: jest.fn(value => `Caption ${value}`),
34-
render: jest.fn(value => `Caption ${value}`),
34+
get: jest.fn((value: string) => `Caption ${value}`),
35+
render: jest.fn((value: string) => `Caption ${value}`),
3536
emptyCaption: "Select an option",
3637
formatter: undefined
3738
}
@@ -67,7 +68,8 @@ describe("CheckboxRadioSelection", () => {
6768
customEditability: "default" as const,
6869
customEditabilityExpression: { status: "available", value: false } as any,
6970
readOnlyStyle: "bordered" as const,
70-
ariaRequired: { status: "available", value: false } as any
71+
ariaRequired: { status: "available", value: false } as any,
72+
controlType: "checkbox" as const
7173
};
7274

7375
it("renders without crashing", () => {

0 commit comments

Comments
 (0)