Wednesday 22 April 2020

Question about testing.

So i am learning about testing with jest and supertest and i have a question.I am testing my /api/bookmarks routes and i was easily able to test GET and POST. however to send a DELETE request i need the document's id to delete it.how do i do it? should i send a post request and get the id from response or would that go aganist unit testing philosophy?I am still new to node and i appreciate any help or advice.

Submitted April 23, 2020 at 03:55AM by undo124455

No comments:

Post a Comment