This commit is contained in:
Jonathan Belcher 2018-11-12 16:49:40 -05:00 committed by GitHub
parent cd00227875
commit ffaa80a95e
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AnimationSlider it renders correctly 1`] = `
<div
className="woocommerce-slide-animation animate-left"
>
<div>
<div />
</div>
</div>
`;

View File

@ -0,0 +1,23 @@
/** @format */
/**
* External dependencies
*/
import renderer from 'react-test-renderer';
/**
* Internal dependencies
*/
import AnimationSlider from '../';
describe( 'AnimationSlider', () => {
test( 'it renders correctly', () => {
const tree = renderer
.create(
<AnimationSlider animationKey={ 0 } animate={ 'left' }>
{ () => <div /> }
</AnimationSlider>
)
.toJSON();
expect( tree ).toMatchSnapshot();
} );
} );