import * as React from 'react'; import { Image } from '../Image'; import render from '../../utils/_tests/render'; describe('props', () => { it('should render correctly', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('should render correctly with CSS props', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('should render correctly for fit contain', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); }); describe('theming', () => { it('Image.base should render correctly', () => { const { container } = render(, { theme: { Image: { styles: { base: { backgroundColor: 'red' } } } }, }); expect(container.firstChild).toMatchSnapshot(); }); }); describe('defaultProps', () => { it('should render correctly for default props', () => { const { container } = render(, { theme: { Image: { defaultProps: { accessibilityLabel: 'Bean' } } }, }); expect(container.firstChild).toMatchSnapshot(); }); });