mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
/*eslint-env node, mocha */
|
|
/*global expect */
|
|
/*eslint no-console: 0*/
|
|
'use strict';
|
|
|
|
// Uncomment the following lines to use the react test utilities
|
|
// import TestUtils from 'react-addons-test-utils';
|
|
import createComponent from 'helpers/shallowRenderHelper';
|
|
|
|
import <%= component.className %> from '<%= component.webpackPath %>';
|
|
|
|
describe('<%= component.className %>', () => {
|
|
let component;
|
|
|
|
beforeEach(() => {
|
|
component = createComponent(<%= component.className %>);
|
|
});
|
|
|
|
it('should have its component name as default className', () => {
|
|
expect(component.props.className).to.equal('<%= style.className %>');
|
|
});
|
|
});
|