Skip to content

Commit 931daf4

Browse files
committed
Small tweak
1 parent 805caf1 commit 931daf4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/components/__tests__/Link-test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ var DefaultRoute = require('../DefaultRoute');
77
var Routes = require('../Routes');
88
var Link = require('../Link');
99

10+
afterEach(function () {
11+
// For some reason unmountComponentAtNode doesn't call componentWillUnmount :/
12+
PathStore.removeAllChangeListeners();
13+
});
14+
1015
describe('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 () {

0 commit comments

Comments
 (0)