Skip to content

Commit

Permalink
refactor(option-row): convert unit tests to RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
edleeks87 committed Oct 10, 2024
1 parent 2004036 commit 592a521
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 224 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/select/option-row/option-row.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import guid from "../../../__internal__/utils/helpers/guid";
import StyledOptionRow from "./option-row.style";
import SelectListContext from "../__internal__/select-list/select-list.context";

export interface OptionRowProps extends TagProps {
export interface OptionRowProps extends Omit<TagProps, "data-component"> {
/** The option's visible text, displayed within <Textbox> of <Select> */
text: string;
/** Row content, should consist of multiple td elements */
Expand Down Expand Up @@ -84,14 +84,14 @@ const OptionRow = React.forwardRef(
ref={ref}
aria-selected={isSelected}
aria-disabled={disabled}
data-component="option-row"
isDisabled={disabled}
onClick={handleClick}
isHighlighted={selectListContext.currentOptionsListIndex === index}
role="option"
hidden={hidden}
style={style}
{...rest}
data-component="option-row"
>
{children}
</StyledOptionRow>
Expand Down
180 changes: 0 additions & 180 deletions src/components/select/option-row/option-row.spec.tsx

This file was deleted.

Loading

0 comments on commit 592a521

Please sign in to comment.