create-ima-app
Version:
Create a IMA.js App easily.
18 lines (13 loc) • 421 B
JavaScript
import { renderWithContext } from '@ima/testing-library';
import { Card } from '../Card';
describe('Card', () => {
it('can render', async () => {
const props = {
title: 'Test card',
href: 'https://www.seznam.cz',
children: 'Some content of the card.',
};
const { container } = await renderWithContext(<Card {...props} />);
expect(container.firstChild).toMatchSnapshot();
});
});