UNPKG

svg-loaders-react

Version:

React implementation of the SVG Loaders library by Sam Herbert

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