File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
1
/*eslint-disable react/prop-types*/
2
2
3
- import React , { Component , MouseEvent , ComponentType } from 'react'
3
+ import React , { Component , MouseEvent } from 'react'
4
4
import createClass from 'create-react-class'
5
5
import PropTypes from 'prop-types'
6
6
import ReactDOM from 'react-dom'
@@ -81,23 +81,6 @@ describe('React', () => {
81
81
return action . type === 'APPEND' ? prev + action . body : prev
82
82
}
83
83
84
- function imitateHotReloading (
85
- TargetClass : ComponentType ,
86
- SourceClass : ComponentType ,
87
- container : Component
88
- ) {
89
- // Crude imitation of hot reloading that does the job
90
- Object . getOwnPropertyNames ( SourceClass . prototype )
91
- . filter ( ( key ) => typeof SourceClass . prototype [ key ] === 'function' )
92
- . forEach ( ( key ) => {
93
- if ( key !== 'render' && key !== 'constructor' ) {
94
- TargetClass . prototype [ key ] = SourceClass . prototype [ key ]
95
- }
96
- } )
97
-
98
- container . forceUpdate ( )
99
- }
100
-
101
84
afterEach ( ( ) => rtl . cleanup ( ) )
102
85
103
86
describe ( 'Core subscription and prop passing behavior' , ( ) => {
You can’t perform that action at this time.
0 commit comments