UNPKG

silki

Version:

Cli tool for build react app, based on generator-react-multipage, create-react-app, roadhog. Support react multiple pages app develop.

23 lines (17 loc) 664 B
/* 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 %>', function () { let component; beforeEach(function () { component = createComponent(<%= component.className %>); }); it('should have its component name as default className', function () { expect(component.props.className).to.equal('<%= style.className %>'); }); });