terra-slide-group
Version:
A component that utilizes the `react-transition-group` library to present a stack of components in an animated fashion
21 lines (18 loc) • 424 B
JSX
import React from 'react';
import Slide from '../../src/Slide';
it('should render a default Slide', () => {
const wrapper = shallow((
<Slide>
<div>Slide Content</div>
</Slide>
));
expect(wrapper).toMatchSnapshot();
});
it('should render a hidden Slide', () => {
const wrapper = shallow((
<Slide isHidden>
<div>Slide Content</div>
</Slide>
));
expect(wrapper).toMatchSnapshot();
});