mattermost-mobile/app/components/post_draft/quick_actions/quick_actions.test.js
Claudio Costa 846aa759b2
[MM-31257] Bump max allowed file uploads per post (#5552)
* Bump max allowed file uploads per post

* Update error string
2021-08-24 18:23:38 +02:00

29 lines
815 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,
maxFileCount: 10,
screenId: 'Channel',
theme: Preferences.THEMES.default,
};
test('should match snapshot', () => {
const wrapper = shallow(<QuickActions {...baseProps}/>);
expect(wrapper.getElement()).toMatchSnapshot();
});
});