diff --git a/webapp/channels/src/plugins/test/post_type.test.tsx b/webapp/channels/src/plugins/test/post_type.test.tsx
index e8687e5257..621b23b6df 100644
--- a/webapp/channels/src/plugins/test/post_type.test.tsx
+++ b/webapp/channels/src/plugins/test/post_type.test.tsx
@@ -8,11 +8,9 @@ import {Preferences} from 'mattermost-redux/constants';
import PostMessageView from 'components/post_view/post_message_view/post_message_view';
-class PostTypePlugin extends React.PureComponent {
- render() {
- return {'PostTypePlugin'};
- }
-}
+const PostTypePlugin = () => (
+ {'PostTypePlugin'}
+);
describe('plugins/PostMessageView', () => {
const post = {type: 'testtype', message: 'this is some text', id: 'post_id'} as any;