mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Merge pull request #41 from victor-homyakov/patch-1
Fix warning "Something is calling a React component directly"
This commit is contained in:
commit
4d6b93bce8
@ -1,11 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
describe('<%= classedName %>', function () {
|
||||
var React = require('react/addons');
|
||||
var <%= classedName %>, component;
|
||||
|
||||
beforeEach(function () {
|
||||
<%= classedName %> = require('../../../src/scripts/components/<%= classedFileName %>.js');
|
||||
component = <%= classedName %>();
|
||||
component = React.createElement(<%= classedName %>);
|
||||
});
|
||||
|
||||
it('should create a new instance of <%= classedName %>', function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user