[MM-56843] Convert ./actions/views/modals.test.jsx from Class Component to Function Component (#26238)

This commit is contained in:
Syed Ali Abbas Zaidi 2024-02-19 12:58:49 +05:00 committed by GitHub
parent f130615011
commit d21236b908
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,9 +9,7 @@ import {openModal, closeModal} from 'actions/views/modals';
import mockStore from 'tests/test_store';
import {ActionTypes, ModalIdentifiers} from 'utils/constants';
class TestModal extends React.PureComponent {
render() {
return (
const TestModal = () => (
<Modal
show={true}
>
@ -19,8 +17,6 @@ class TestModal extends React.PureComponent {
<Modal.Body/>
</Modal>
);
}
}
describe('modals view actions', () => {
let store;