April 2020
Intermediate to advanced
716 pages
18h 55m
English
For the MERN Social application, we will write a test to check whether the delete button on a post is only visible when the signed-in user is also the creator of the post. This means that the delete button will only be a part of the rendered Post view if the _id of the authenticated user is the same as the postedby value of the post data being rendered.
In order to implement this test case, we will add code that takes care of the following:
Read now
Unlock full access