Last active
August 6, 2021 17:46
-
-
Save BrianJenney/94dc377dd4f2af55a990050b07b39dfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should show water bottles when a user navigates to `product/water-bottles`', () => { | |
const { findByText } = renderWithRouterMatch( | |
<ProductPage />, | |
{ | |
path: '/:product', | |
route: '/water-bottles/' | |
}, | |
{ store = {} } | |
); | |
expect(findByText('Purchase Water Bottles')).toBeTruthy(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment