Ticket: Create/Update Comments pass test but not validate

Hi All,

Ticket: create/update comments is passed however I can’t validate the status. Please help! Thanks.


JosephYanMBpro:mflix-js joseph$ npm test -t create-update-comments

server@1.0.0 test /Users/joseph/Documents/js-app/mflix-js
jest --passWithNoTests “create-update-comments”

Determining test suites to run…Setup Mongo Connection
PASS test/create-update-comments.test.js
Create/Update Comments
✓ Can post a comment (117ms)
✓ Can update a comment (223ms)
✓ Can only update comment if user posted comment (166ms)

Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 1.495s, estimated 3s
Ran all test suites matching /create-update-comments/i.
Teardown Mongo Connection

Do you get any error message when accessing the Status page?

I got no error but 500 and it’s pass the test.



In the past some people got errors in C/U Comments not because C/U Comments was wrong but because getMovie(ById) was wrong. Mainly because the comments were not returned in the appropriate order in getMovie(ById).