Testing the Routes: Use Case - Updating
Learn how to test the endpoints for updating a non-existing product, an existing product and updating with a garbage value.
We'll cover the following...
We'll cover the following...
Garbage values
First, we test with garbage JSON in the request. Before making the request, we create a product to avoid getting an error caused by a possibility of missing product. Afterward, ...