Skip to content

refactor: some refactoring

Codecov / codecov/patch failed Oct 25, 2024 in 1s

72.91% of diff hit (target 93.16%)

View this Pull Request on Codecov

72.91% of diff hit (target 93.16%)

Annotations

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/CourseUnit.jsx#L100

Added line #L100 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/CourseUnit.jsx#L107-L108

Added lines #L107 - L108 were not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/CourseUnit.jsx#L110-L111

Added lines #L110 - L111 were not covered by tests

Check warning on line 9 in src/course-unit/context/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/context/hooks.tsx#L9

Added line #L9 was not covered by tests

Check warning on line 17 in src/course-unit/context/iFrameContext.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/context/iFrameContext.tsx#L16-L17

Added lines #L16 - L17 were not covered by tests

Check warning on line 20 in src/course-unit/context/iFrameContext.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/context/iFrameContext.tsx#L20

Added line #L20 was not covered by tests

Check warning on line 172 in src/course-unit/data/api.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/api.js#L171-L172

Added lines #L171 - L172 were not covered by tests

Check warning on line 236 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L236

Added line #L236 was not covered by tests

Check warning on line 261 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L261

Added line #L261 was not covered by tests

Check warning on line 275 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L273-L275

Added lines #L273 - L275 were not covered by tests

Check warning on line 278 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L278

Added line #L278 was not covered by tests

Check warning on line 280 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L280

Added line #L280 was not covered by tests

Check warning on line 286 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L284-L286

Added lines #L284 - L286 were not covered by tests

Check warning on line 292 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L288-L292

Added lines #L288 - L292 were not covered by tests

Check warning on line 294 in src/course-unit/data/thunk.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/data/thunk.js#L294

Added line #L294 was not covered by tests

Check warning on line 127 in src/course-unit/hooks.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/hooks.jsx#L126-L127

Added lines #L126 - L127 were not covered by tests

Check warning on line 135 in src/course-unit/hooks.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/hooks.jsx#L133-L135

Added lines #L133 - L135 were not covered by tests

Check warning on line 141 in src/course-unit/hooks.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/hooks.jsx#L141

Added line #L141 was not covered by tests

Check warning on line 146 in src/course-unit/hooks.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/hooks.jsx#L145-L146

Added lines #L145 - L146 were not covered by tests

Check warning on line 166 in src/course-unit/hooks.jsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/hooks.jsx#L166

Added line #L166 was not covered by tests

Check warning on line 57 in src/course-unit/move-modal/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/move-modal/hooks.tsx#L57

Added line #L57 was not covered by tests

Check warning on line 60 in src/course-unit/move-modal/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/move-modal/hooks.tsx#L60

Added line #L60 was not covered by tests

Check warning on line 67 in src/course-unit/move-modal/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/move-modal/hooks.tsx#L67

Added line #L67 was not covered by tests

Check warning on line 88 in src/course-unit/move-modal/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/move-modal/hooks.tsx#L88

Added line #L88 was not covered by tests

Check warning on line 91 in src/course-unit/move-modal/hooks.tsx

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/course-unit/move-modal/hooks.tsx#L90-L91

Added lines #L90 - L91 were not covered by tests