Skip to content

Commit 5fe9898

Browse files
committed
test: update TeamGroupsSection tests to use test utilities
1 parent e7ddf81 commit 5fe9898

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/group-configurations/team-groups-section/TeamGroupsSection.test.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { render } from '@testing-library/react';
2-
import { IntlProvider } from '@edx/frontend-platform/i18n';
1+
import { initializeMocks, render } from '../../testUtils';
32

43
import { teamGroupsMock } from '../__mocks__';
54
import TeamGroupsSection from '.';
65

7-
const renderComponent = (props = {}) => render(
8-
<IntlProvider locale="en">
6+
const renderComponent = (props = {}) => {
7+
initializeMocks();
8+
return render(
99
<TeamGroupsSection
1010
availableGroup={teamGroupsMock}
1111
{...props}
1212
/>
13-
</IntlProvider>,
14-
);
13+
);
14+
};
1515

1616
describe('<TeamGroupsSection />', () => {
1717
it('renders component correctly', () => {

0 commit comments

Comments
 (0)