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.
Mormon, Christian, Father, Educator, CEO of Thinkster.io, Organizer of @ngconf, @frameworksummit & React Conf. Front end developer, and Software Craftsmanship Evangelist.
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.
possibly....