'use strict';

describe('<%= classedName %>', function () {
  var <%= scriptAppName %>, component;

  beforeEach(function () {
    var container = document.createElement('div');
    container.id = 'content';
    document.body.appendChild(container);

    <%= scriptAppName %> = require('../../../src/scripts/components/<%= scriptAppName %>.jsx');
    component = <%= scriptAppName %>();
  });

  it('should create a new instance of <%= scriptAppName %>', function () {
    expect(component).toBeDefined();
  });
});

'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();
  });
});

Fix error and warning in test
Fix error and warning in test

Fix `jsx` extension
Fix warning "Something is calling a React component directly"