File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import React , { memo , useState } from 'react' ;
1+ import React , { useState } from 'react' ;
22import { expect as chaiExpect } from 'chai' ;
33import { configure , mount } from 'enzyme' ;
44import Adapter from 'enzyme-adapter-react-16' ;
@@ -241,7 +241,7 @@ describe('Select component', () => {
241241
242242 const LIST1 = [ { id : 'us' , name : 'US' } , { id : 'ca' , name : 'CA' } ] ;
243243 const LIST2 = [ { id : 'uk' , name : 'UK' } , { id : 'fr' , name : 'France' } ] ;
244- const MyComponent = memo ( ( ) => {
244+ const MyComponent = ( ) => {
245245 const stateOptionList = useState ( LIST1 ) ;
246246 const stateCurId = useState ( LIST1 [ 0 ] . id ) ;
247247 return (
@@ -265,7 +265,7 @@ describe('Select component', () => {
265265 < div id = "stateCurId" > { stateCurId [ 0 ] } </ div >
266266 </ div >
267267 ) ;
268- } ) ;
268+ } ;
269269
270270 it ( '[update optionList]: Should change ' , ( ) => {
271271 const wrapper = mount ( < MyComponent /> ) ;
You can’t perform that action at this time.
0 commit comments