Skip to content

Commit

Permalink
test: ignore dragover functions in coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Mar 4, 2024
1 parent 117bf34 commit 4c724b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/course-outline/drag-helper/DraggableList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const DraggableList = ({
return null;

Check warning on line 93 in src/course-outline/drag-helper/DraggableList.jsx

View check run for this annotation

Codecov / codecov/patch

src/course-outline/drag-helper/DraggableList.jsx#L93

Added line #L93 was not covered by tests
};

/* istanbul ignore next */
const subsectionDragOver = (active, over, activeInfo, overInfo) => {
if (
activeInfo.parent.id === overInfo.parent.id
Expand Down Expand Up @@ -132,6 +133,7 @@ const DraggableList = ({
}
};

/* istanbul ignore next */
const unitDragOver = (active, over, activeInfo, overInfo) => {
if (
activeInfo.parent.id === overInfo.parent.id
Expand Down Expand Up @@ -176,6 +178,7 @@ const DraggableList = ({
}
};

/* istanbul ignore next */
const handleDragOver = (event) => {
const { active, over } = event;
if (!active || !over) {
Expand Down

0 comments on commit 4c724b6

Please sign in to comment.