Victor Homyakov d3218561b7 Fix error and warning in test
Fix `jsx` extension
Fix warning "Something is calling a React component directly"
2015-01-09 20:25:47 +03:00

20 lines
573 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('../../../src/scripts/components/<%= scriptAppName %>.js');
component = React.createElement(<%= scriptAppName %>);
});
it('should create a new instance of <%= scriptAppName %>', function () {
expect(component).toBeDefined();
});
});