-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#12588] Added unit tests to CourseEditForm component. #12597
[#12588] Added unit tests to CourseEditForm component. #12597
Conversation
Hi @lunoos, thank you for your interest in contributing to TEAMMATES!
Please address the above before we proceed to review your PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small nits, and also do add tests for the statusMessageService.showErrorToast
being called in copyCourseHandler
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
… coverage course-edit-form component
Changes made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @lunoos thanks for the effort here, i've added a few more comments, do take a look and make the necessary changes
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/course-edit-form/course-edit-form.component.spec.ts
Outdated
Show resolved
Hide resolved
… coverage course-edit-form component
… coverage course-edit-form component
Changes has been made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thank you for your contribution to TEAMMATES
…MATES#12597) * [TEAMMATES#12588] Added unit tests to CourseEditForm component * [TEAMMATES#12588] Added unit tests to CourseEditForm component * [TEAMMATES#12597] Incorporated the review comments for improving code coverage course-edit-form component * [TEAMMATES#12588] Added unit tests to CourseEditForm component * [TEAMMATES#12588] Added unit tests to CourseEditForm component * [TEAMMATES#12597] Incorporated the review comments for improving code coverage course-edit-form component * [TEAMMATES#12597] Incorporated the review comments for improving code coverage course-edit-form component --------- Co-authored-by: Cedric Ong <67156011+cedricongjh@users.noreply.github.com>
Part of #12588
Outline of Solution
Added unit tests to CourseEditForm component for following methods:
setIsEditing,
updateInstitutes,
detectTimezoneHandler,
submitHandler,
closeFormHandler,
deleteCourseHandler