7 0-214.96z"/>
      </svg></a> </h4>
<section aria-labelledby="toc_live-example-1">
<p><a class="jsbin-embed" href="http://jsbin.com/bobaropega/1/embed?output">Unit Testing
Basics: Method Side Effects</a></p>
<p>In the event the object's method returns a value you can simply assert that the
return value is calculated correctly. Suppose our object has a <code>calc</code> method
that returns a value based on some internal state.</p>
<pre class="language-javascript line-numbers"><code class="javascript langua