mattermost-mobile/app/components/sidebars/main/main_sidebar.test.js
Miguel Alatzar 8e48058fff
[MM-16910] Set footerColor the same as navBarBackgroundColor (#3002)
* Set footerColor the same as navBarBackgroundColor

* Oops, forgot __snapshots__
2019-07-19 17:29:17 -07:00

38 lines
1 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {shallow} from 'enzyme';
import Preferences from 'mattermost-redux/constants/preferences';
import ChannelSidebar from './main_sidebar';
jest.mock('react-intl');
describe('ChannelSidebar', () => {
const baseProps = {
actions: {
getTeams: jest.fn(),
logChannelSwitch: jest.fn(),
makeDirectChannel: jest.fn(),
setChannelDisplayName: jest.fn(),
setChannelLoading: jest.fn(),
},
blurPostTextBox: jest.fn(),
currentTeamId: 'current-team-id',
currentUserId: 'current-user-id',
deviceWidth: 10,
isLandscape: false,
teamsCount: 2,
theme: Preferences.THEMES.default,
};
test('should match, full snapshot', () => {
const wrapper = shallow(
<ChannelSidebar {...baseProps}/>
);
expect(wrapper.getElement()).toMatchSnapshot();
});
});