We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa30c1 commit 3a5b404Copy full SHA for 3a5b404
modules/__tests__/Router-test.js
@@ -56,13 +56,13 @@ describe('Router', function () {
56
});
57
58
describe('willTransitionFrom', function () {
59
- it('sends a rendered element', function (done) {
+ it('sends a component instance', function (done) {
60
var div = document.createElement('div');
61
62
var Bar = React.createClass({
63
statics: {
64
- willTransitionFrom: function (transition, element) {
65
- expect(div.querySelector('#bar')).toEqual(element.getDOMNode());
+ willTransitionFrom: function (transition, component) {
+ expect(div.querySelector('#bar')).toEqual(component.getDOMNode());
66
done();
67
}
68
},
0 commit comments