mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Merge pull request #40 from victor-homyakov/patch-2
Fix error and warning in test
This commit is contained in:
commit
014bb0266d
@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
describe('<%= classedName %>', function () {
|
||||
var React = require('react/addons');
|
||||
var <%= scriptAppName %>, component;
|
||||
|
||||
beforeEach(function () {
|
||||
@ -8,8 +9,8 @@ describe('<%= classedName %>', function () {
|
||||
container.id = 'content';
|
||||
document.body.appendChild(container);
|
||||
|
||||
<%= scriptAppName %> = require('../../../src/scripts/components/<%= scriptAppName %>.jsx');
|
||||
component = <%= scriptAppName %>();
|
||||
<%= scriptAppName %> = require('../../../src/scripts/components/<%= scriptAppName %>.js');
|
||||
component = React.createElement(<%= scriptAppName %>);
|
||||
});
|
||||
|
||||
it('should create a new instance of <%= scriptAppName %>', function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user