concept engineer in category javascript

appears as: Engineers
Testing JavaScript Applications

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 addToInventory function. How will you ensure that the logging happened if your tests can’t access it?