mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await">ES2017 feature async/await</a> to write easy-to-read tests which
deal with asynchronous behavior as follows:</p>
<p>Mark the callback passed to the <code>test</code> function as asynchronous using the <code>async</code> keyword:</p>
<div class="filename javascript"><div class="ribbon"></div><span>tests/acceptance/new-post-appears-first-test.js</span><pre class="language-javascript line-numbers"><code class="javascript language-javascript">  <s