File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1011,23 +1011,22 @@ describe('Router.run', function () {
1011
1011
} ) ;
1012
1012
1013
1013
describe ( 'unmounting' , function ( ) {
1014
- afterEach ( function ( ) {
1014
+ afterEach ( function ( ) {
1015
1015
window . location . hash = '' ;
1016
1016
} ) ;
1017
1017
1018
1018
it ( 'removes location change listeners' , function ( done ) {
1019
1019
var c = 0 ;
1020
1020
var div = document . createElement ( 'div' ) ;
1021
- Router . run ( < Route handler = { Foo } path = "*" /> , Router . HashLocation , function ( Handler ) {
1021
+ Router . run ( < Route handler = { Foo } path = "*" /> , Router . HashLocation , function ( Handler ) {
1022
1022
c ++ ;
1023
1023
expect ( c ) . toEqual ( 1 ) ;
1024
- React . renderComponent ( < Handler /> , div , function ( ) {
1024
+ React . render ( < Handler /> , div , function ( ) {
1025
1025
React . unmountComponentAtNode ( div ) ;
1026
1026
Router . HashLocation . push ( '/foo' ) ;
1027
1027
// might be flakey? I wish I knew right now a better way to do this
1028
1028
setTimeout ( done , 0 ) ;
1029
1029
} ) ;
1030
1030
} ) ;
1031
-
1032
1031
} ) ;
1033
1032
} ) ;
You can’t perform that action at this time.
0 commit comments