UNPKG

svg-loaders-react

Version:

React implementation of the SVG Loaders library by Sam Herbert

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