I’m trying to do the [Create/Update Comments] Ticket.
The insert unitest keeps failing on this line: expect(martianComments._id).toEqual(postCommentResult.insertedId)
With both expected_val (ie: martianComments._id) and actual_val (ie: postCommentResult.insertedId) having values, but they don’t match.
When I look up the comment _id that matches the expected_val, I can see it’s the pre-inserted comment with the latest date - date is “2018-08-13 20:35:16.068”, text is “nope”. I also notice that the movie_id field looks like this ->
I can find my inserted comment, but I notice that the movie_id field looks like this ->
Skimming the video again, I can’t find pointers on how to fix this. What could I be doing wrong?