Skip to content

Commit

Permalink
Cleanup tests from removed prop
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed Jul 29, 2020
1 parent 900b0a7 commit a4e6ab9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/components/forms/Validation/ValidationItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ValidationItem } from './ValidationItem'
describe('ValidationItem', () => {
it('renders without errors', () => {
const { container } = render(
<ValidationItem validator="uppercase" isValid={false}>
<ValidationItem id="uppercase" isValid={false}>
Validation message
</ValidationItem>
)
Expand All @@ -17,16 +17,10 @@ describe('ValidationItem', () => {
it('renders list item with styles', () => {
const { queryByTestId } = render(
<ul>
<ValidationItem
data-testid="uppercase"
validator="uppercase"
isValid={false}>
<ValidationItem data-testid="uppercase" id="uppercase" isValid={false}>
Validation message
</ValidationItem>
<ValidationItem
data-testid="lowercase"
validator="numerical"
isValid={true}>
<ValidationItem data-testid="lowercase" id="numerical" isValid={true}>
Validation message
</ValidationItem>
</ul>
Expand All @@ -44,10 +38,10 @@ describe('ValidationItem', () => {
it('renders its children', () => {
const { queryByText } = render(
<ul>
<ValidationItem validator="minLength" isValid={true}>
<ValidationItem id="minLength" isValid={true}>
Length is more than 2 characters
</ValidationItem>
<ValidationItem validator="maxLength" isValid={false}>
<ValidationItem id="maxLength" isValid={false}>
Length is less than 16 characters
</ValidationItem>
</ul>
Expand Down

0 comments on commit a4e6ab9

Please sign in to comment.