Skip to content

refactor: code refactoring

Codecov / codecov/patch failed Apr 30, 2024 in 1s

34.21% of diff hit (target 92.12%)

View this Pull Request on Codecov

34.21% of diff hit (target 92.12%)

Annotations

Check warning on line 185 in src/course-unit/CourseUnit.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/CourseUnit.jsx#L185

Added line #L185 was not covered by tests

Check warning on line 81 in src/course-unit/course-xblock/CourseXBlock.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/CourseXBlock.jsx#L80-L81

Added lines #L80 - L81 were not covered by tests

Check warning on line 228 in src/course-unit/course-xblock/CourseXBlock.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/CourseXBlock.jsx#L228

Added line #L228 was not covered by tests

Check warning on line 11 in src/course-unit/course-xblock/utils.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/utils.js#L9-L11

Added lines #L9 - L11 were not covered by tests

Check warning on line 15 in src/course-unit/course-xblock/utils.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/utils.js#L13-L15

Added lines #L13 - L15 were not covered by tests

Check warning on line 18 in src/course-unit/course-xblock/utils.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/utils.js#L18

Added line #L18 was not covered by tests

Check warning on line 24 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L18-L24

Added lines #L18 - L24 were not covered by tests

Check warning on line 27 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L26-L27

Added lines #L26 - L27 were not covered by tests

Check warning on line 29 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L29

Added line #L29 was not covered by tests

Check warning on line 41 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L40-L41

Added lines #L40 - L41 were not covered by tests

Check warning on line 46 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L46

Added line #L46 was not covered by tests

Check warning on line 49 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L49

Added line #L49 was not covered by tests

Check warning on line 52 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L52

Added line #L52 was not covered by tests

Check warning on line 54 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L54

Added line #L54 was not covered by tests

Check warning on line 57 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L57

Added line #L57 was not covered by tests

Check warning on line 59 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L59

Added line #L59 was not covered by tests

Check warning on line 62 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L61-L62

Added lines #L61 - L62 were not covered by tests

Check warning on line 66 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L66

Added line #L66 was not covered by tests

Check warning on line 69 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L68-L69

Added lines #L68 - L69 were not covered by tests

Check warning on line 71 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L71

Added line #L71 was not covered by tests

Check warning on line 75 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L75

Added line #L75 was not covered by tests

Check warning on line 86 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L86

Added line #L86 was not covered by tests

Check warning on line 89 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L88-L89

Added lines #L88 - L89 were not covered by tests

Check warning on line 96 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L96

Added line #L96 was not covered by tests

Check warning on line 99 in src/course-unit/course-xblock/xblock-content/XBlockContent.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/course-xblock/xblock-content/XBlockContent.jsx#L99

Added line #L99 was not covered by tests