mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
20 lines
534 B
JavaScript
20 lines
534 B
JavaScript
'use strict';
|
|
|
|
describe('<%= classedName %>', () => {
|
|
let React = require('react/addons');
|
|
let <%= scriptAppName %>, component;
|
|
|
|
beforeEach(() => {
|
|
let container = document.createElement('div');
|
|
container.id = 'content';
|
|
document.body.appendChild(container);
|
|
|
|
<%= scriptAppName %> = require('components/<%= scriptAppName %>.js');
|
|
component = React.createElement(<%= scriptAppName %>);
|
|
});
|
|
|
|
it('should create a new instance of <%= scriptAppName %>', () => {
|
|
expect(component).toBeDefined();
|
|
});
|
|
});
|