Closed beblicarl closed 1 year ago
@beblicarl, this just came to mind. we would need to add a test case for this change to ensure it works
perhaps something like
it('should update likesCount column for post')
where we compare the number of likes in thepost_likes
table to thelikesCount
for that post
yeah that's true.. but we still don't return the likesCount field for the post so I am sure it will be for the new issue you talked about
yeah that's true.. but we still don't return the likesCount field for the post so I am sure it will be for the new issue you talked about
okay, however, its not related to whether something is being returned or not. Its mainly checking that an insert/delete updates the likesCount
in the table. Just like you were manually checking the posts
table after you inserted/deleted a post_like locally
yeah that's true.. but we still don't return the likesCount field for the post so I am sure it will be for the new issue you talked about
okay, however, its not related to whether something is being returned or not. Its mainly checking that an insert/delete updates the
likesCount
in the table. Just like you were manually checking theposts
table after you inserted/deleted a post_like locally
yes please
Pre-Submission Checklist
main
branch.git commit --amend
to amend any fixes.Checklist:
What does this PR do?
https://github.com/tbf-challenge/teamwork-be/issues/307
How should this be manually tested?
npm run dev
Any background context you want to provide?
What are the relevant issues?
https://github.com/tbf-challenge/teamwork-be/issues/307