You've already forked mattermost-webapp
mirror of
https://github.com/zerotier/mattermost-webapp.git
synced 2026-05-22 16:23:25 -07:00
ecf98dd811
* fix rendering of OAuth app callback URLs and add @testing-library/react * update mattermost-redux
11 lines
371 B
JavaScript
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>);
|
|
};
|