We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ddf81 commit 5fe9898Copy full SHA for 5fe9898
src/group-configurations/team-groups-section/TeamGroupsSection.test.jsx
@@ -1,17 +1,17 @@
1
-import { render } from '@testing-library/react';
2
-import { IntlProvider } from '@edx/frontend-platform/i18n';
+import { initializeMocks, render } from '../../testUtils';
3
4
import { teamGroupsMock } from '../__mocks__';
5
import TeamGroupsSection from '.';
6
7
-const renderComponent = (props = {}) => render(
8
- <IntlProvider locale="en">
+const renderComponent = (props = {}) => {
+ initializeMocks();
+ return render(
9
<TeamGroupsSection
10
availableGroup={teamGroupsMock}
11
{...props}
12
/>
13
- </IntlProvider>,
14
-);
+ );
+};
15
16
describe('<TeamGroupsSection />', () => {
17
it('renders component correctly', () => {
0 commit comments