Skip to content

Commit

Permalink
fixup! refactor Shop test to use rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
lstebner committed Jan 23, 2024
1 parent 0f9a6e8 commit 36d8a5e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Shop/Shop.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ beforeEach(() => {
})

describe('<Shop />', () => {
test.each(['Seeds', 'Supplies', 'Upgrades'])('the %s tab', tabLabel => {
expect(screen.getByText(tabLabel)).toBeInTheDocument()
})
test.each(['Seeds', 'Supplies', 'Upgrades'])(
'the %s tab exists',
tabLabel => {
expect(screen.getByText(tabLabel)).toBeInTheDocument()
}
)
})

0 comments on commit 36d8a5e

Please sign in to comment.