0.44 27.29 10.6l37.1-37.1c59.28-59.26 59.28-155.7 0-214.96z"/>
      </svg></a> </h3>
<section aria-labelledby="toc_unit-tests">
<p>To get started writing tests, we start with a plain unit test. In the example below, we are testing the function <code>relativeDate()</code> by passing a mock value into the function and asserting if the output is what we expected.</p>
<div class="filename javascript"><div class="ribbon"></div><span>utils/tests/relative-date-test.js</span><pre class="language-javascript line-nu