Skip to content

Commit

Permalink
chore: Add test for small prop to UnorderedList (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens authored May 8, 2024
1 parent 0e77bd6 commit d31c183
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react/src/UnorderedList/UnorderedList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ describe('Unordered list', () => {
expect(items.length).toBe(3)
})

it('renders the small size class', () => {
render(<UnorderedList size="small" />)

const component = screen.getByRole('list')

expect(component).toHaveClass('ams-unordered-list--small')
})

it('supports ForwardRef in React', () => {
const ref = createRef<HTMLUListElement>()

Expand Down

0 comments on commit d31c183

Please sign in to comment.