Chris 892f771899 Added new directory options for generated components (styles are now also generated in the components folder)
Added directory options fallbacks for version 3 and below
Prepared for inclusion of css modules
2016-06-15 15:34:26 +02:00

19 lines
502 B
JavaScript

import React from 'react';
import { shallow } from 'enzyme';
import <%= component.className %> from '<%= component.webpackPath %>';
describe('<<%= component.className %> />', () => {
let component;
beforeEach(() => {
component = shallow(<<%= component.className %> />);
});
describe('when rendering the component', () => {
it('should have a className of "<%= style.className %>"', () => {
expect(component.hasClass('<%= style.className %>')).to.equal(true);
});
});
});