Files
mattermost-mobile/app/components/loading_error/index.test.tsx
Elias Nahum d547bddc2b [Gekidou] optimizations, fix & moved files (#6177)
* Freeze unfocused tabs

* Fix syntax_highlight when multiple code blocks present in the same post

* Move @components/channel_list to @screens/home/channels_list/categories_list

* Update app/screens/channel/channel.tsx

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

* Add support for Freeze on Android

* Fix render on tablets

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-04-18 08:49:17 -04:00

22 lines
562 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {renderWithIntlAndTheme} from '@test/intl-test-helper';
import ErrorComponent from './index';
test('Loading Error should match snapshot', () => {
const {toJSON} = renderWithIntlAndTheme(
<ErrorComponent
loading={false}
message='Error description'
onRetry={() => true}
title='Error title'
/>,
);
expect(toJSON()).toMatchSnapshot();
});