silki
Version:
Cli tool for build react app, based on generator-react-multipage, create-react-app, roadhog. Support react multiple pages app develop.
19 lines (14 loc) • 526 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import <%= component.className %> from '<%= component.webpackPath %>';
describe('<<%= component.className %> />', function () {
let component;
beforeEach(function () {
component = shallow(<<%= component.className %> />);
});
describe('when rendering the component', function () {
it('should have a className of "<%= style.className %>"', function () {
expect(component.hasClass('<%= style.className %>')).to.equal(true);
});
});
});