Hi, I am not able to pass the following challenges and I cant figured out where the problem lays. I am able to send and receive the indicated requests to my server and I am able to receive the indicated responses, all the 10 chai tests are passing but I cant figured out what is it that I am doing incorrectly. Any hint(s) will be highly appreciated:
- You can send a POST request to
/api/threads/{board}
with form data includingtext
anddelete_password
. The saved database record will have at least the fields_id
,text
,created_on
(date & time),bumped_on
(date & time, starts same ascreated_on
),reported
(boolean),delete_password
, &replies
(array). - You can send a POST request to
/api/replies/{board}
with form data includingtext
,delete_password
, &thread_id
. This will update thebumped_on
date to the comment’s date. In the thread’sreplies
array, an object will be saved with at least the properties_id
,text
,created_on
,delete_password
, &reported
. - You can send a DELETE request to
/api/replies/{board}
and pass along thethread_id
,reply_id
, &delete_password
. Returned will be the stringincorrect password
orsuccess
. On success, the text of thereply_id
will be changed to[deleted]
.
The link to my code is CodeSandbox - CodeSandbox.
Thanks