mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
20 lines
552 B
JavaScript
20 lines
552 B
JavaScript
'use strict';
|
|
|
|
describe('<%= classedName %>', function () {
|
|
var React = require('react/addons');
|
|
var <%= scriptAppName %>, component;
|
|
|
|
beforeEach(function () {
|
|
var 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 %>', function () {
|
|
expect(component).toBeDefined();
|
|
});
|
|
});
|