UNPKG

svg-loaders-react

Version:

React implementation of the SVG Loaders library by Sam Herbert

15 lines (12 loc) 405 B
import React from 'react'; import { shallow, mount } from 'enzyme'; import { Rings } from '../src/svg-loader-components/rings'; describe('Test <Rings />', () => { it('renders without crashing', () => { shallow(<Rings />); }); it('viewBox property is defined', () => { const RingsComponent = mount(<Rings />).find('svg'); expect(RingsComponent.prop('viewBox')).toBeDefined(); }); });