Skip to content

Commit bed01b1

Browse files
committed
fixup! feat(cdk-experimental/radio): create radio group and button directives
1 parent d1b4ce0 commit bed01b1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/cdk-experimental/ui-patterns/radio/radio.spec.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ describe('RadioGroup Pattern', () => {
3333
items: inputs.items,
3434
value: inputs.value ?? signal([]),
3535
activeIndex: inputs.activeIndex ?? signal(0),
36-
wrap: inputs.wrap ?? signal(true),
3736
readonly: inputs.readonly ?? signal(false),
3837
disabled: inputs.disabled ?? signal(false),
3938
skipDisabled: inputs.skipDisabled ?? signal(true),
@@ -137,23 +136,6 @@ describe('RadioGroup Pattern', () => {
137136
expect(radioGroup.inputs.activeIndex()).toBe(4);
138137
});
139138

140-
it('should wrap navigation when wrap is true', () => {
141-
const {radioGroup} = getDefaultPatterns({wrap: signal(true)});
142-
radioGroup.onKeydown(up());
143-
expect(radioGroup.inputs.activeIndex()).toBe(4);
144-
radioGroup.onKeydown(down());
145-
expect(radioGroup.inputs.activeIndex()).toBe(0);
146-
});
147-
148-
it('should not wrap navigation when wrap is false', () => {
149-
const {radioGroup} = getDefaultPatterns({wrap: signal(false)});
150-
radioGroup.onKeydown(up());
151-
expect(radioGroup.inputs.activeIndex()).toBe(0);
152-
radioGroup.onKeydown(end());
153-
radioGroup.onKeydown(down());
154-
expect(radioGroup.inputs.activeIndex()).toBe(4);
155-
});
156-
157139
it('should skip disabled radios when skipDisabled is true', () => {
158140
const {radioGroup, radioButtons} = getDefaultPatterns({skipDisabled: signal(true)});
159141
radioButtons[1].disabled.set(true);

0 commit comments

Comments
 (0)