-
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] Add unit test for every method in CommentRowComponent #12612
Conversation
Hi @ThomasGreen123, thank you for your interest in contributing to TEAMMATES!
Please address the above before we proceed to review your PR. |
Ready for review |
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Show resolved
Hide resolved
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Show resolved
Hide resolved
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Show resolved
Hide resolved
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Outdated
Show resolved
Hide resolved
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.
thank you for your PR!
do take a look at the comments and make the changes accordingly
Thank you for giving me these instructions! I have made changes accordingly. Does this meet requirements now? Feel free to tell me if this requires further improvement. |
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 @ThomasGreen123, you're almost there with this PR, let's expect
that the allowAllApplicableTypesToSee and getNewVisibilityStateMachine are called with the correct parameters, similar to the example i provided earlier with applyVisibilitySettings
Yeah, I have made changes accordingly. Ready for review. |
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.
apologises for the late review, just a few more changes and we're good to go!
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Outdated
Show resolved
Hide resolved
src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Outdated
Show resolved
Hide resolved
|
||
expect(spyVisibilityStateMachine.allowAllApplicableTypesToSee).toHaveBeenCalledWith(); | ||
|
||
expect(spyCommentService.getNewVisibilityStateMachine).toHaveBeenCalledWith([]); |
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.
let's set questionShowResponsesTo in the component, and check that getNewVisibilityStateMachine is called with the appropriate params
# Conflicts: # src/web/app/components/comment-box/comment-row/comment-row.component.spec.ts
Thank you for your advice. I've made relevant changes. Ready for review. |
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 the work on this!
Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢 |
Folks, This PR seems to be stalling (no activities for the past 8 days). 🐌 😢 |
Folks, This PR seems to be stalling (no activities for the past 11 days). 🐌 😢 |
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
…nt (TEAMMATES#12612) * Add unit test for every method in comment-row.component.spec.ts * [TEAMMATES#12588] Add one unit test in comment-row.component.spec.ts * [TEAMMATES#12588] Update on unit test in comment-row.component.spec.ts * [TEAMMATES#12588] Update on small typo in comment-row.component.spec.ts * [TEAMMATES#12588] Update on small change in comment-row.component.spec.ts * [TEAMMATES#12588] Add unit test for every method in recipient-type-name.pipe.spec.ts * [TEAMMATES#12588] fix some typo * [TEAMMATES#12588] fix some typo * [TEAMMATES#12588] Add some unit test in recipient-type-name.pipe.spec.ts * [TEAMMATES#12588] Fix the error * [TEAMMATES#12588] Fix the error --------- Co-authored-by: Wei Qing <[email protected]>
Part of #12588
Outline of Solution
Add unit test for every method in CommentRowComponent