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 19, 2024
1 parent 2e676db commit 03fe379
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -102,7 +102,6 @@ export function fetchCourseOutlineIndexQuery(courseId) {
if (error.response && error.response.status === 403) {
dispatch(updateOutlineIndexLoadingStatus({

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L103 was not covered by tests
status: RequestStatus.DENIED,
errors: getErrorDetails(error, false),
}));
} else {
dispatch(updateOutlineIndexLoadingStatus({
Expand Down

0 comments on commit 03fe379

Please sign in to comment.