xchain-components
Version:
Xchain Components
15 lines (11 loc) • 370 B
JavaScript
/* @flow */
/* eslint react/jsx-filename-extension: 0 */
import React from 'react';
import { shallow } from 'enzyme';
import XImage from '..';
describe('XImage', () => {
it('should render correctly', () => {
const component = shallow(<XImage src="https://react.semantic-ui.com/images/wireframe/image.png" />);
expect(component).toMatchSnapshot();
});
});