Adds a test snapshot for count (https://github.com/woocommerce/woocommerce-admin/pull/830)
This commit is contained in:
parent
a2f0f5c875
commit
2eff88bf4c
|
@ -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>
|
||||
`;
|
|
@ -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();
|
||||
} );
|
||||
} );
|
Loading…
Reference in New Issue