uot;ospec&quot;
    }
}</code></pre><p>Remember this is a JSON file, so object key names such as <code>&quot;test&quot;</code> must be inside of double quotes.</p>
<p>To setup a test suite, create a <code>tests</code> folder and inside of it, create a test file:</p>
<pre><code class="language-javascript">// file: tests/math-test.js
var o = require(&quot;mithril/ospec/ospec&quot;)

o.spec(&quot;math&quot;, function() {
    o(&quot;addition works&quot;, function() {
        o(1 + 2).equals(3)
    })
})</code>