mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
21 lines
675 B
JavaScript
21 lines
675 B
JavaScript
'use strict';
|
|
|
|
// Uncomment the following lines to use the react test utilities
|
|
// import React from 'react/addons';
|
|
// const TestUtils = React.addons.TestUtils;
|
|
|
|
import createComponent from 'helpers/createComponent';
|
|
import <%= classedName %> from 'components/<%= classedFileName %><%= reactComponentSuffix %>';
|
|
|
|
describe('<%= classedName %>', () => {
|
|
let <%= classedName %>Component;
|
|
|
|
beforeEach(() => {
|
|
<%= classedName %>Component = createComponent(<%= classedName %>);
|
|
});
|
|
|
|
it('should have its component name as default className', () => {
|
|
expect(<%= classedName %>Component._store.props.className).toBe('<%= classedName %>');
|
|
});
|
|
});
|