Create/Update Comments: n.json is undefined


I get this message when I validate the code in mflix.
I’m not passing ‘can update a comment’, I am passing the other two tests and all the previous ones.
What is n.json?

I have read through most posts and I am pretty sure that my code is correct:

        { "_id": ObjectId(commentId), "email" : userEmail },
        { "$set": { "text": text, "date" : date } }

Thank you and greets,

I had a similar error because const commentDoc didn’t contain the email property.

I did not notice that in the test file, the second argument of the addComment function is an object testUser, which consists of two properties: name and email

I hope it helped someone (Sorry for my bad English).