File tree Expand file tree Collapse file tree 1 file changed +9
-23
lines changed
packages/react/src/__tests__ Expand file tree Collapse file tree 1 file changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -116,29 +116,15 @@ describe('ReactStrictMode', () => {
116
116
container ,
117
117
) ;
118
118
119
- if ( gate ( flags => flags . useModernStrictMode ) ) {
120
- expect ( log ) . toEqual ( [
121
- 'constructor' ,
122
- 'constructor' ,
123
- 'getDerivedStateFromProps' ,
124
- 'getDerivedStateFromProps' ,
125
- 'render' ,
126
- 'render' ,
127
- 'componentDidMount' ,
128
- 'componentWillUnmount' ,
129
- 'componentDidMount' ,
130
- ] ) ;
131
- } else {
132
- expect ( log ) . toEqual ( [
133
- 'constructor' ,
134
- 'constructor' ,
135
- 'getDerivedStateFromProps' ,
136
- 'getDerivedStateFromProps' ,
137
- 'render' ,
138
- 'render' ,
139
- 'componentDidMount' ,
140
- ] ) ;
141
- }
119
+ expect ( log ) . toEqual ( [
120
+ 'constructor' ,
121
+ 'constructor' ,
122
+ 'getDerivedStateFromProps' ,
123
+ 'getDerivedStateFromProps' ,
124
+ 'render' ,
125
+ 'render' ,
126
+ 'componentDidMount' ,
127
+ ] ) ;
142
128
143
129
log = [ ] ;
144
130
shouldComponentUpdate = true ;
You can’t perform that action at this time.
0 commit comments