Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Denizhan Erdem authored and nanabear0 committed Dec 16, 2024
1 parent 1a7f470 commit f8459e4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Rating', () => {
});
it('creates RadioItems with correct aria-labels', () => {
const onChange = jest.fn();
const { getAllByRole } = render(<Rating onChange={onChange} itemLabel={(num: number) => `item #${num}`} />);
const { getAllByRole } = render(<Rating onChange={onChange} itemLabel={(num) => `item #${num}`} />);
const items = getAllByRole('radio');
expect(items[0].getAttribute('aria-label')).toBe('item #1');
expect(items[1].getAttribute('aria-label')).toBe('item #2');
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export { Max } from './RatingMax.stories';
export { Size } from './RatingSize.stories';
export { Color } from './RatingColor.stories';
export { Shape } from './RatingShape.stories';
export { ItemLabel } from './RatingItemLabel.stories';

export default {
title: 'Components/Rating',
Expand Down

0 comments on commit f8459e4

Please sign in to comment.