* Add Channel Browser screen * Fix tests * Fix lint * Address feedback * Fix test * Remove cancel and fix bottom sheet size * Address feedback * Address feedback * Keep loading when not many items are visible. * Separate search_handler from browse channels * Search channels directly instead of filtering from the loaded * Address feeback * Reduce the size of search_handler.tsx * Add title and closeButtonId to bottomSheet * Let the default value be public and set it before the if Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
18 lines
504 B
TypeScript
18 lines
504 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
|
|
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(
|
|
<Header displayName={'Test!'}/>,
|
|
);
|
|
|
|
expect(toJSON()).toMatchSnapshot();
|
|
});
|
|
});
|