mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-31 12:01:42 +08:00
Project test configuration and updated README
Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @jsx React.DOM
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var React = require('react/addons');
|
||||
|
||||
var <%= classedName %> = React.createClass({
|
||||
/*jshint ignore:start */
|
||||
render: function () {
|
||||
return (
|
||||
<div>
|
||||
<p>Content for <%= classedName %></p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
/*jshint ignore:end */
|
||||
});
|
||||
|
||||
module.exports = <%= classedName %>;
|
||||
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
describe('<%= classedName %>', function () {
|
||||
var <%= classedName %>, component;
|
||||
|
||||
beforeEach(function () {
|
||||
<%= classedName %> = require('../../../src/scripts/components/<%= classedName %>');
|
||||
component = <%= classedName %>();
|
||||
});
|
||||
|
||||
it('should create a new instance of <%= classedName %>', function () {
|
||||
expect(component).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user