From c8bc5fc3d735ead1ef3f31c6137fc13ad150682a Mon Sep 17 00:00:00 2001 From: XnpioChV Date: Thu, 20 Jun 2024 19:18:59 -0500 Subject: [PATCH] fix: Issues on course-unit tests --- src/course-unit/add-component/AddComponent.test.jsx | 2 +- src/course-unit/course-xblock/CourseXBlock.test.jsx | 3 ++- src/generic/block-type-utils/index.jsx | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/course-unit/add-component/AddComponent.test.jsx b/src/course-unit/add-component/AddComponent.test.jsx index 9bd5a5de04..f09378bf09 100644 --- a/src/course-unit/add-component/AddComponent.test.jsx +++ b/src/course-unit/add-component/AddComponent.test.jsx @@ -14,7 +14,7 @@ import { executeThunk } from '../../utils'; import { fetchCourseSectionVerticalData } from '../data/thunk'; import { getCourseSectionVerticalApiUrl } from '../data/api'; import { courseSectionVerticalMock } from '../__mocks__'; -import { COMPONENT_TYPES } from '../constants'; +import { COMPONENT_TYPES } from '../../generic/block-type-utils/constants'; import AddComponent from './AddComponent'; import messages from './messages'; diff --git a/src/course-unit/course-xblock/CourseXBlock.test.jsx b/src/course-unit/course-xblock/CourseXBlock.test.jsx index ad8e09184b..0cdf05d4f6 100644 --- a/src/course-unit/course-xblock/CourseXBlock.test.jsx +++ b/src/course-unit/course-xblock/CourseXBlock.test.jsx @@ -16,7 +16,8 @@ import { getCourseSectionVerticalApiUrl, getXBlockBaseApiUrl } from '../data/api import { fetchCourseSectionVerticalData } from '../data/thunk'; import { executeThunk } from '../../utils'; import { getCourseId } from '../data/selectors'; -import { PUBLISH_TYPES, COMPONENT_TYPES } from '../constants'; +import { PUBLISH_TYPES } from '../constants'; +import { COMPONENT_TYPES } from '../../generic/block-type-utils/constants'; import { courseSectionVerticalMock, courseVerticalChildrenMock } from '../__mocks__'; import CourseXBlock from './CourseXBlock'; import messages from './messages'; diff --git a/src/generic/block-type-utils/index.jsx b/src/generic/block-type-utils/index.jsx index c5e2e3ca0b..73e6555fb8 100644 --- a/src/generic/block-type-utils/index.jsx +++ b/src/generic/block-type-utils/index.jsx @@ -5,8 +5,8 @@ import { import { COMPONENT_TYPE_ICON_MAP, STRUCTURAL_TYPE_ICONS, - COMPONENT_TYPE_COLOR_MAP -} from './constants' + COMPONENT_TYPE_COLOR_MAP, +} from './constants'; /** @param {string} blockType */ export function getItemIcon(blockType) {