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');
7
7
var Routes = require ( '../Routes' ) ;
8
8
var Link = require ( '../Link' ) ;
9
9
10
+ afterEach ( function ( ) {
11
+ // For some reason unmountComponentAtNode doesn't call componentWillUnmount :/
12
+ PathStore . removeAllChangeListeners ( ) ;
13
+ } ) ;
14
+
10
15
describe ( 'A Link' , function ( ) {
11
16
describe ( 'when its route is active' , function ( ) {
12
17
var Home = React . createClass ( {
@@ -26,8 +31,6 @@ describe('A Link', function () {
26
31
27
32
afterEach ( function ( ) {
28
33
React . unmountComponentAtNode ( component . getDOMNode ( ) ) ;
29
- // For some reason unmountComponentAtNode doesn't call componentWillUnmount :/
30
- PathStore . removeAllChangeListeners ( ) ;
31
34
} ) ;
32
35
33
36
it ( 'is active' , function ( ) {
You can’t perform that action at this time.
0 commit comments