import renderer from 'react-test-renderer'; import WashAnimated from './WashAnimated'; it('renders an empty WashAnimated', () => expect(renderer.create().toJSON()).toMatchSnapshot()); it('renders a WashAnimated with text', () => expect(renderer.create(Chris Lloyd).toJSON()).toMatchSnapshot()); it('renders a WashAnimated with wash shown', () => expect( renderer.create(Chris Lloyd).toJSON(), ).toMatchSnapshot()); it('renders a WashAnimated with wash hidden', () => expect( renderer.create(Chris Lloyd).toJSON(), ).toMatchSnapshot()); it('renders a WashAnimated with an image', () => expect( renderer .create( Chris Lloyd , ) .toJSON(), ).toMatchSnapshot());