Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit a38899f

Browse files
committed
Test case for props transfer
1 parent cac8061 commit a38899f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var Router = require('./index');
55
var App = React.createClass({
66

77
render: function() {
8-
return Router.Locations({ref: 'router'},
8+
return Router.Locations({ref: 'router', className: 'App'},
99
Router.Location({path: '/__zuul'}, function(props) { return 'mainpage' }),
1010
Router.Location({path: '/__zuul/:slug'}, function(props) { return props.slug })
1111
);
@@ -37,6 +37,7 @@ describe('react-router-component', function() {
3737

3838
it('renders', function() {
3939
assert.equal(getText(host), 'mainpage');
40+
assert.ok(app.getDOMNode().classList.contains('App'));
4041
});
4142

4243
it('navigates to a different route', function(done) {

0 commit comments

Comments
 (0)