Files
mattermost-mobile/app/components/custom_status/custom_status_text.test.tsx
Daniel Espino García 1c26f14fdb Add import order lint rules (#5672)
* Add import order lint rules

* Address feedback

* Revert change
2021-09-13 10:18:03 +02:00

37 lines
972 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import CustomStatusText from '@components/custom_status/custom_status_text';
import Preferences from '@constants/preferences';
import {render} from '@test/intl-test-helper';
describe('components/custom_status/custom_status_text', () => {
const baseProps = {
text: 'In a meeting',
theme: Preferences.THEMES.denim,
};
it('should match snapshot', () => {
const wrapper = render(
<CustomStatusText
{...baseProps}
/>,
);
expect(wrapper.toJSON()).toMatchSnapshot();
});
it('should match snapshot with empty text', () => {
const wrapper = render(
<CustomStatusText
{...baseProps}
text={''}
/>,
);
expect(wrapper.toJSON()).toMatchSnapshot();
});
});