concept engineer in category javascript
appears as: Engineers

This is an excerpt from Manning's book Testing JavaScript Applications.
In this case, logging is a side-effect which you can’t easily observe from outside the
addToInventoryfunction. How will you ensure that the logging happened if your tests can’t access it?