Files
old-csveditor/tests/App-test.js
Christian Alfoni 633e48461c New boilerplate
2014-10-27 15:28:16 +01:00

18 lines
470 B
JavaScript

/** @jsx React.DOM */
var expect = require('chai').expect;
describe('App', function() {
it('has the text Hello world!', function() {
var React = require('react/addons');
var App = require('../app/App.js');
var TestUtils = React.addons.TestUtils;
var app = TestUtils.renderIntoDocument(
<App/>
);
var h1 = TestUtils.findRenderedDOMComponentWithTag(app, 'h1');
expect(h1.getDOMNode().textContent).to.equal('Hello world!');
});
});