[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,18 +9,14 @@ import {openModal, closeModal} from 'actions/views/modals';
import mockStore from 'tests/test_store'; import mockStore from 'tests/test_store';
import {ActionTypes, ModalIdentifiers} from 'utils/constants'; import {ActionTypes, ModalIdentifiers} from 'utils/constants';
class TestModal extends React.PureComponent { const TestModal = () => (
render() { <Modal
return ( show={true}
<Modal >
show={true} <Modal.Header closeButton={true}/>
> <Modal.Body/>
<Modal.Header closeButton={true}/> </Modal>
<Modal.Body/> );
</Modal>
);
}
}
describe('modals view actions', () => { describe('modals view actions', () => {
let store; let store;