[MM-55329] Convert ./plugins/test/post_type.test.jsx from Class Component to Function Component (#25487)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
82b7eef563
Коммит
109b074d92
@@ -8,11 +8,9 @@ import {Preferences} from 'mattermost-redux/constants';
|
|||||||
|
|
||||||
import PostMessageView from 'components/post_view/post_message_view/post_message_view';
|
import PostMessageView from 'components/post_view/post_message_view/post_message_view';
|
||||||
|
|
||||||
class PostTypePlugin extends React.PureComponent {
|
const PostTypePlugin = () => (
|
||||||
render() {
|
<span id='pluginId'>{'PostTypePlugin'}</span>
|
||||||
return <span id='pluginId'>{'PostTypePlugin'}</span>;
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('plugins/PostMessageView', () => {
|
describe('plugins/PostMessageView', () => {
|
||||||
const post = {type: 'testtype', message: 'this is some text', id: 'post_id'} as any;
|
const post = {type: 'testtype', message: 'this is some text', id: 'post_id'} as any;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user