Skip to content

Instantly share code, notes, and snippets.

@anthanh
Created April 21, 2020 22:09
Show Gist options
  • Save anthanh/6af20d945a8d19a9d6f0f1170c730a48 to your computer and use it in GitHub Desktop.
Save anthanh/6af20d945a8d19a9d6f0f1170c730a48 to your computer and use it in GitHub Desktop.
describe('<PriceCard />', () => {
it('renders <PriceCard /> component', async () => {
const { container } = render(
<PriceCard data={mockData} onAddToCart={() => {}} />
)
expect(container).toMatchSnapshot()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment