[MM-55328] Convert './components/toggle_modal_button/toggle_modal_button.test.tsx' from Class Component to Function Component (#25523)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e0a36cf60a
Коммит
7cca62f56f
@@ -15,9 +15,7 @@ jest.mock('react-redux', () => ({
|
|||||||
useDispatch: () => jest.fn(),
|
useDispatch: () => jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
class TestModal extends React.PureComponent {
|
const TestModal = () => (
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<Modal
|
<Modal
|
||||||
show={true}
|
show={true}
|
||||||
onHide={jest.fn()}
|
onHide={jest.fn()}
|
||||||
@@ -26,8 +24,6 @@ class TestModal extends React.PureComponent {
|
|||||||
<Modal.Body/>
|
<Modal.Body/>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('components/ToggleModalButton', () => {
|
describe('components/ToggleModalButton', () => {
|
||||||
test('component should match snapshot', () => {
|
test('component should match snapshot', () => {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user