forked from Ivasoft/mattermost-mobile
* [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>
26 lines
761 B
TypeScript
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();
|
|
});
|
|
});
|