How in Mocha test function with console.log statement?
<p>Let's say, I have a function:</p>

<pre><code>function consoleOutput(param) {
  var newParam = param * param;  
  console.log(newParam);
}
</code></pre>

<p>How can I test in Mocha, that this function will be working correctly (param will be multiplied by two and output to the console). Thanks.</p>