mattermost-mobile/app/screens/long_post/long_post.test.js
Miguel Alatzar 4c872283ca
[MM-18532] Remove reactions from long post screen (#3447)
* Remove reactions from long post screen

* Remove reaction post option

* Update app/screens/long_post/long_post.test.js

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update snapshot test
2019-10-24 14:01:44 -07:00

32 lines
825 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import Preferences from 'mattermost-redux/constants/preferences';
import {shallowWithIntl} from 'test/intl-test-helper';
import LongPost from './long_post';
jest.mock('react-native-doc-viewer', () => ({
openDoc: jest.fn(),
}));
describe('LongPost', () => {
const baseProps = {
actions: {
loadThreadIfNecessary: jest.fn(),
selectPost: jest.fn(),
},
postId: 'post-id',
theme: Preferences.THEMES.default,
isLandscape: false,
};
test('should match snapshot', () => {
const wrapper = shallowWithIntl(<LongPost {...baseProps}/>);
expect(wrapper.instance()).toMatchSnapshot();
});
});