react-webpack-template
Version:
A base skeleton template for react and webpack without task runners
23 lines (17 loc) • 604 B
JavaScript
/*eslint-env node, mocha */
/*global expect */
/*eslint no-console: 0*/
;
// Uncomment the following lines to use the react test utilities
// import React from 'react/addons';
// const TestUtils = React.addons.TestUtils;
import createComponent from 'helpers/shallowRenderHelper';
import Main from 'components/Main';
describe('MainComponent', function () {
beforeEach(function () {
this.MainComponent = createComponent(Main);
});
it('should have its component name as default className', function () {
expect(this.MainComponent.props.className).to.equal('index');
});
});