Skip to content

Commit

Permalink
fix: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Jun 13, 2024
1 parent 557ce04 commit 6752733
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/course-checklist/CourseChecklist.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const CourseChecklist = ({
bestPracticeData,
} = useSelector(state => state.courseChecklist);

const { bestPracticeChecklistStatus, launchChecklistStatus } = loadingStatus;
const { bestPracticeChecklistLoadingStatus, launchChecklistLoadingStatus, launchChecklistStatus } = loadingStatus;

const isCourseLaunchChecklistLoading = bestPracticeChecklistStatus === RequestStatus.IN_PROGRESS;
const isCourseBestPracticeChecklistLoading = launchChecklistStatus === RequestStatus.IN_PROGRESS;
const isCourseLaunchChecklistLoading = bestPracticeChecklistLoadingStatus === RequestStatus.IN_PROGRESS;
const isCourseBestPracticeChecklistLoading = launchChecklistLoadingStatus === RequestStatus.IN_PROGRESS;
const isLoadingDenied = launchChecklistStatus === RequestStatus.DENIED;

if (isLoadingDenied) {
Expand Down
1 change: 0 additions & 1 deletion src/course-outline/data/thunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export function fetchCourseOutlineIndexQuery(courseId) {
if (error.response && error.response.status === 403) {
dispatch(updateOutlineIndexLoadingStatus({

Check warning on line 100 in src/course-outline/data/thunk.js

View check run for this annotation

Codecov / codecov/patch

src/course-outline/data/thunk.js#L100

Added line #L100 was not covered by tests
status: RequestStatus.DENIED,
errors: getErrorDetails(error, false),
}));
} else {
dispatch(updateOutlineIndexLoadingStatus({
Expand Down
1 change: 1 addition & 0 deletions src/course-outline/page-alerts/PageAlerts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ const PageAlerts = ({
case API_ERROR_TYPES.serverError:
return {
key: k,
desc: v.status === 403 ? '' : v.data,
title: intl.formatMessage(messages.serverErrorAlert, {
status: v.status,
}),
Expand Down

0 comments on commit 6752733

Please sign in to comment.