mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Added directory options fallbacks for version 3 and below Prepared for inclusion of css modules
19 lines
502 B
JavaScript
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);
|
|
});
|
|
});
|
|
});
|