Files
mattermost-webapp/tests/react_testing_utils.js
T
Saturnino Abril ecf98dd811 MM-21977 Fix rendering of OAuth app callback URLs and add @testing-library/react (#4713)
* fix rendering of OAuth app callback URLs and add @testing-library/react

* update mattermost-redux
2020-01-31 23:08:55 +08:00

11 lines
371 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {render} from '@testing-library/react';
import {IntlProvider} from 'react-intl';
export const renderWithIntl = (component, locale = 'en') => {
return render(<IntlProvider locale={locale}>{component}</IntlProvider>);
};