Chapter 2: Ticket: Create/Update Comments, failed unit test but success in status page

I’ve been keep failing the create-update-comments unit test (fail to insert comment), scratching my head unable to figure out anything wrong in my code; Without any idea, I proceed to run npm and try the status page anyway, and I successfully get the validation code, with the exact same code.

All I want to say is, wat.

P.S. and the same happened to Ticket: Delete Comment.

Hi @Ming_Yiu_Lai, welcome to the community.
Can you please share the code changes you have made for this exercise?
Also, can you share the complete error message that you got when you ran the test command on the terminal?

PS: Don’t forget to wrap your code with spoiler tags like:
[spoiler]<--Your Code-->[/spoiler].

If you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,

Do you sort the comments by date in getMovie()?

1 Like