Files
react-webpack-template/test/components/MainTest.js
T
2015-08-31 11:21:01 +02:00

28 lines
697 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 React from 'react/addons';
// const TestUtils = React.addons.TestUtils;
import createComponent from 'helpers/shallowRenderHelper';
import Main from 'components/Main';
describe('MainComponent', () => {
let MainComponent;
beforeEach(() => {
MainComponent = createComponent(Main);
});
it('should have its component name as default className', () => {
expect(MainComponent._store.props.className).to.equal('index');
});
it('should do something!', () => {
expect(true).to.be.true;
});
});