DEV Community

Discussion on: Are Your Unit Tests Correct?

Collapse
 
sepyrt profile image
Dimitris R

Nice read, thanks.

In regards to the "add to cart and sort example", wouldn't be better to use two separate functions and hence two different unit tests? i.e. one to add to the cart and one to sort the items.

Collapse
 
josepheames profile image
Joe Eames

possibly....