Files
mattermost-mobile/app/components/channel_list/header/header.test.tsx
Suneet Srivastava 03d5ac083c MM-39716: Added + button bottomsheet layout (#5957)
* [gekidou] feat: MM-39716 Added + Button Bottom sheet layout

* feat: Added on click to the channel header listener

* chore: Ran i18n command and did the requested changes

* chore: updated test snapshot

* Refactor PlusMenu & fix Browse Channels

* Fix snapshot tests

* feedback review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-16 14:17:57 +01:00

26 lines
761 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {renderWithIntl} from '@test/intl-test-helper';
import Header from './header';
describe('components/channel_list/header', () => {
it('Channel List Header Component should match snapshot', () => {
const {toJSON} = renderWithIntl(
<SafeAreaProvider>
<Header
canCreateChannels={true}
canJoinChannels={true}
displayName={'Test!'}
/>
</SafeAreaProvider>,
);
expect(toJSON()).toMatchSnapshot();
});
});