Skip to content
Prev Previous commit
Next Next commit
fix: remove extra IntlProvider in test
  • Loading branch information
filippovskii09 committed Nov 5, 2025
commit 3180f605eddffcd8c78e1e59dc88b672e4f86b8c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import userEvent from '@testing-library/user-event';
import { useSelector } from 'react-redux';
import { IntlProvider } from 'react-intl';

import { useModel } from '@src/generic/model-store';
import {
Expand Down Expand Up @@ -35,12 +34,10 @@

const renderComponent = (props = {}) => {
render(
<IntlProvider locale="en" messages={messages}>
<GradeSummaryHeader
allOfSomeAssignmentTypeIsLocked={false}
{...props}
/>
</IntlProvider>,
<GradeSummaryHeader

Check failure on line 37 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 6 space characters but found 0

Check failure on line 37 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Unexpected tab character
allOfSomeAssignmentTypeIsLocked={false}

Check failure on line 38 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 2 space characters but found 0

Check failure on line 38 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Unexpected tab character
{...props}

Check failure on line 39 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 2 space characters but found 0

Check failure on line 39 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Unexpected tab character
/>

Check failure on line 40 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Missing trailing comma

Check failure on line 40 in src/course-home/progress-tab/grades/grade-summary/GradeSummaryHeader.test.jsx

View workflow job for this annotation

GitHub Actions / tests

Unexpected tab character
);
};

Expand Down
Loading