Skip to content

Commit

Permalink
Remove unnecessary test for validation prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidtj committed Jul 20, 2023
1 parent 7a6a963 commit 42fcfd4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/components/Alert/Alert.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@ describe('Alert component', () => {
expect(queryByTestId('alert')).toContainHTML('p')
})

it('renders custom children with validation prop', () => {
const { queryByTestId } = render(
<Alert type="success" headingLevel="h4" validation>
<ul>
<li>test 1</li>
<li>test 2</li>
</ul>
</Alert>
)
expect(queryByTestId('alert')).toHaveTextContent('test 1test 2')
expect(queryByTestId('alert')).toContainHTML('ul')
expect(queryByTestId('alert')).toContainHTML('li')
expect(queryByTestId('alert')).not.toContainHTML('p')
})

it('renders validation style alert', () => {
const { queryByTestId } = render(
<Alert type="success" validation headingLevel="h4" className="myClass">
Expand Down

0 comments on commit 42fcfd4

Please sign in to comment.