@wordpress/components
Version:
UI components for WordPress.
23 lines (20 loc) • 467 B
JavaScript
/**
* External dependencies
*/
import { render } from '@testing-library/react';
/**
* Internal dependencies
*/
import { ControlGroup } from '..';
import Button from '../../../button';
describe( 'props', () => {
test( 'should render correctly', () => {
const { container } = render(
<ControlGroup>
<Button>Code is Poetry</Button>
<Button>WordPress.org</Button>
</ControlGroup>
);
expect( container.firstChild ).toMatchSnapshot();
} );
} );