File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
modules/components/__tests__ Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ var DefaultRoute = require('../DefaultRoute');
77var Routes = require ( '../Routes' ) ;
88var Link = require ( '../Link' ) ;
99
10+ afterEach ( function ( ) {
11+ // For some reason unmountComponentAtNode doesn't call componentWillUnmount :/
12+ PathStore . removeAllChangeListeners ( ) ;
13+ } ) ;
14+
1015describe ( 'A Link' , function ( ) {
1116 describe ( 'when its route is active' , function ( ) {
1217 var Home = React . createClass ( {
@@ -26,8 +31,6 @@ describe('A Link', function () {
2631
2732 afterEach ( function ( ) {
2833 React . unmountComponentAtNode ( component . getDOMNode ( ) ) ;
29- // For some reason unmountComponentAtNode doesn't call componentWillUnmount :/
30- PathStore . removeAllChangeListeners ( ) ;
3134 } ) ;
3235
3336 it ( 'is active' , function ( ) {
You can’t perform that action at this time.
0 commit comments