mattermost-mobile/app/components/post_draft/quick_actions/quick_actions.test.js
Mattermost Build c4b48dd647
Specify screenId for files uploads handler (#5595) (#5607)
(cherry picked from commit 4837ff5d70)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-08-06 09:49:57 -04:00

28 lines
789 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {shallow} from 'enzyme';
import React from 'react';
import Preferences from '@mm-redux/constants/preferences';
import QuickActions from './quick_actions';
describe('QuickActions', () => {
const baseProps = {
onTextChange: jest.fn(),
testID: 'post_draft.quick_actions',
canUploadFiles: true,
fileCount: 1,
inputEventType: 'input-event-type',
maxFileSize: 10,
screenId: 'Channel',
theme: Preferences.THEMES.default,
};
test('should match snapshot', () => {
const wrapper = shallow(<QuickActions {...baseProps}/>);
expect(wrapper.getElement()).toMatchSnapshot();
});
});