Skip to content

Commit

Permalink
Apply suggestions to List tests
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Hugo Miranda Pinto <victor2142@gmail.com>
  • Loading branch information
igorbrasileiro and victorhmp authored Oct 14, 2021
1 parent 69cb037 commit 441a4b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/store-ui/src/atoms/List/List.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('List', () => {
})

describe('Accessibility', () => {
it('default variant should not have violations with', async () => {
it('should have no violations when rendering the default variant', async () => {
const { getByTestId } = render(
<List>
{optionsArray.map((option, index) => (
Expand All @@ -97,7 +97,7 @@ describe('List', () => {
expect(await axe(getByTestId('store-list'))).toHaveNoViolations()
})

it('unordered variant should not have violations with', async () => {
it('should have no violations when rendering the unordered variant', async () => {
const { getByTestId } = render(
<List variant="unordered">
{optionsArray.map((option, index) => (
Expand All @@ -109,7 +109,7 @@ describe('List', () => {
expect(await axe(getByTestId('store-list'))).toHaveNoViolations()
})

it('ordered variant should not have violations with', async () => {
it('should have no violations when rendering the ordered variant', async () => {
const { getByTestId } = render(
<List variant="ordered">
{optionsArray.map((option, index) => (
Expand All @@ -121,7 +121,7 @@ describe('List', () => {
expect(await axe(getByTestId('store-list'))).toHaveNoViolations()
})

it('description variant should not have violations with', async () => {
it('should have no violations when rendering the description variant', async () => {
const { getByTestId } = render(
<List variant="description">
{optionsArray.map((option, index) => (
Expand Down

0 comments on commit 441a4b3

Please sign in to comment.