* Renames header * Adds Server Display Name Context * Adds server and team name to header * Snapshot fail fixed * rename serverUrl context to server and include displayName * Add server display name and use only team display name in channel list header * Improve channel_list test * Fix channel list on tablets when team sidebar is present * Fix Server icon color Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
18 lines
488 B
TypeScript
18 lines
488 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
|
|
import {render} from '@test/intl-test-helper';
|
|
|
|
import Header from './header';
|
|
|
|
describe('components/channel_list/header', () => {
|
|
it('Channel List Header Component should match snapshot', () => {
|
|
const {toJSON} = render(
|
|
<Header displayName={'Test!'}/>,
|
|
);
|
|
|
|
expect(toJSON()).toMatchSnapshot();
|
|
});
|
|
});
|