Skip to content

chore(build): Fix lint errors #9950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ test('Renders with the label wrapper if isLabelWrapped is provided', () => {
});

test('Renders with span element around the inner label text if isLabelWrapped is provided', () => {
const labelText = "test checkbox label";
const labelText = 'test checkbox label';
render(<Checkbox id="test-id" isLabelWrapped label={labelText} />);

expect(screen.getByText(labelText).tagName).toBe('SPAN');
Expand All @@ -257,14 +257,14 @@ test('Renders with the label wrapper if component is set to label', () => {
});

test('Renders with span element around the inner label text if component is set to label', () => {
const labelText = "test checkbox label";
const labelText = 'test checkbox label';
render(<Checkbox id="test-id" component="label" label={labelText} />);

expect(screen.getByText(labelText).tagName).toBe('SPAN');
});

test('Renders label before checkbox input if isLabelBeforeButton is provided', () => {
render(<Checkbox id="test-id" isLabelBeforeButton label={"test checkbox label"} />);
render(<Checkbox id="test-id" isLabelBeforeButton label={'test checkbox label'} />);

const wrapper = screen.getByRole('checkbox').parentElement!;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ describe('Radio', () => {
});

test('Renders label before radio input if isLabelBeforeButton is provided', () => {
render(<Radio id="test-id" name="check" isLabelBeforeButton label={"test radio label"} />);
render(<Radio id="test-id" name="check" isLabelBeforeButton label={'test radio label'} />);

const wrapper = screen.getByRole('radio').parentElement!;

expect(wrapper.children[0].tagName).toBe('LABEL');
expect(wrapper.children[1].tagName).toBe('INPUT');
});
Expand Down