This commit is contained in:
Jonathan Belcher 2018-11-13 09:39:42 -05:00 committed by GitHub
parent a2f0f5c875
commit 2eff88bf4c
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Count it renders correctly 1`] = `
<span
aria-label="Total 33"
className="woocommerce-count"
>
33
</span>
`;

View File

@ -0,0 +1,17 @@
/** @format */
/**
* External dependencies
*/
import renderer from 'react-test-renderer';
/**
* Internal dependencies
*/
import Count from '../';
describe( 'Count', () => {
test( 'it renders correctly', () => {
const tree = renderer.create( <Count count={ 33 } /> ).toJSON();
expect( tree ).toMatchSnapshot();
} );
} );