e corner cases are not inadvertedly broken and that previously fixed bugs do not get re-introduced by unrelated changes.</p>
<hr>
<h3 id="unit-testing"><a href="#unit-testing">Unit testing</a></h3>
<p>Unit testing is the practice of isolating a part of an application (typically a single module), and asserting that, given some inputs, it produces the expected outputs.</p>
<p>Testing a Mithril component is easy. Let&#39;s assume we have a simple component like this:</p>
<pre><code class="lang-javascript">// M