Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from proful/ButtonToolBar-suggestion-from-jack
Browse files Browse the repository at this point in the history
ButtonToolBar.test.tsx to RTL Added exact match as suggested by Jack
  • Loading branch information
JacobMGEvans authored Dec 17, 2020
2 parents 156661b + c26bdd9 commit 43ec96e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('Button Tool Bar', () => {
render(<ButtonToolBar />)
const renderedButtons = screen.getAllByRole('button')

expect(renderedButtons[0]).toHaveTextContent(/test 1/i)
expect(renderedButtons[1]).toHaveTextContent(/test 2/i)
expect(renderedButtons[0]).toHaveTextContent('Test 1')
expect(renderedButtons[1]).toHaveTextContent('Test 2')
})

it('should return null when there is no button in the provider', () => {
Expand Down

0 comments on commit 43ec96e

Please # to comment.