Skip to content

Commit

Permalink
fix race condition with loading mocha tests before html.
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Jan 14, 2025
1 parent 0f954e5 commit e9f2274
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ <h2>Mocha Test Suite</h2>

<div id="mocha"></div>

<script class="mocha-exec">
mocha.run();
</script>
<em>Work Area</em>
<hr />
<pre id="work-area" hx-ext="morph">
Output Here...
</pre>

<script class="mocha-exec">
mocha.run();
</script>
</body>
</html>

0 comments on commit e9f2274

Please sign in to comment.