chore: fix js tests
This commit is contained in:
parent
40d0095b3c
commit
aa25867517
1 changed files with 15 additions and 13 deletions
|
@ -123,6 +123,7 @@
|
||||||
<div id="mocha"></div>
|
<div id="mocha"></div>
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
<script>
|
<script>
|
||||||
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
var runner = (window.mochaPhantomJS || window.mocha).run(function (failures) {
|
var runner = (window.mochaPhantomJS || window.mocha).run(function (failures) {
|
||||||
if (window.location.search.indexOf('debug') === -1)
|
if (window.location.search.indexOf('debug') === -1)
|
||||||
qs('#mocha').style.display = 'block'
|
qs('#mocha').style.display = 'block'
|
||||||
|
@ -138,6 +139,7 @@
|
||||||
console.log(message)
|
console.log(message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue