Skip to content

Commit ffb66b3

Browse files
author
Edward Xiao
committed
no message
1 parent 8437dd9 commit ffb66b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/Select.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { memo, useState } from 'react';
1+
import React, { useState } from 'react';
22
import { expect as chaiExpect } from 'chai';
33
import { configure, mount } from 'enzyme';
44
import 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 />);

0 commit comments

Comments
 (0)