Skip to content

Commit

Permalink
Test for extra class consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Nov 7, 2024
1 parent 138bf3b commit 01b0f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/Image/Image.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ describe('Image', () => {

const component = container.querySelector(':only-child')

expect(component).toHaveClass('extra')
expect(component).toHaveClass('ams-image')
expect(component).toHaveClass('ams-image extra')
})

it('renders class names to display the image in a given aspect ratio', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Switch/Switch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('Switch', () => {

const component = container.querySelector(':only-child')

expect(component).toHaveClass('ams-switch', 'extra')
expect(component).toHaveClass('ams-switch extra')
})

it('is able to pass a React ref', () => {
Expand Down

0 comments on commit 01b0f35

Please sign in to comment.