<p><strong>So finally you're <ahref="file:///code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/">testing your frontend JavaScript code</a>? Great! The more you
<p><strong>So finally you're <ahref="http://fakehost/code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/">testing your frontend JavaScript code</a>? Great! The more you
write tests, the more confident you are with your code… but how much precisely?
That's where <ahref="http://en.wikipedia.org/wiki/Code_coverage">code coverage</a> might
help.</strong></p>
@ -24,7 +24,7 @@ matter of adding this simple line to your HTML test file:</p>
<p>As an example, let's reuse the silly <code>Cow</code> example we used <ahref="file:///code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/">in a previous episode</a>:</p>
<p>As an example, let's reuse the silly <code>Cow</code> example we used <ahref="http://fakehost/code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/">in a previous episode</a>:</p>
<pre><code>// cow.js
(function(exports) {
"use strict";
@ -98,7 +98,7 @@ Mocha:</p>
<li>The HTML test file <em>must</em> be served over HTTP for the adapter to be loaded.</li>
</ul>
<p>Running the tests now gives us something like this:</p>