Skip to content

Commit

Permalink
fix: run mocha as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Mar 4, 2022
1 parent 220d7bb commit 4dac25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mocha/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<block type="test_field_block"></block>
</xml>

<script>
<script type="module">
mocha.run(function(failures) {
var failureDiv = document.getElementById('failureCount');
failureDiv.setAttribute('tests_failed', failures);
Expand Down

0 comments on commit 4dac25a

Please sign in to comment.