@wordpress/components
Version:
UI components for WordPress.
20 lines (16 loc) • 358 B
JavaScript
/**
* External dependencies
*/
import { shallow } from 'enzyme';
/**
* Internal dependencies
*/
import ColorIndicator from '../';
describe( 'ColorIndicator', () => {
it( 'matches the snapshot', () => {
const wrapper = shallow(
<ColorIndicator aria-label="sample label" colorValue="#fff" />
);
expect( wrapper ).toMatchSnapshot();
} );
} );