32 lines
824 B
HTML
32 lines
824 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Mocha Tests</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
|
|
<!--<script src="https://unpkg.com/chai/chai.js"></script>-->
|
|
<!--<script src="https://unpkg.com/mocha/mocha.js"></script>-->
|
|
|
|
<!--<script class="mocha-init">-->
|
|
<!-- mocha.setup('bdd');-->
|
|
<!-- mocha.checkLeaks();-->
|
|
<!--</script>-->
|
|
|
|
<script type="module">
|
|
import mocha from "https://esm.sh/mocha@10.2.0"
|
|
import {assert} from "https://esm.sh/chai@4.3.10"
|
|
mocha.setup('bdd');
|
|
|
|
it('should add to numbers from an es module', () => {
|
|
assert.equal(1 + 1, 2);
|
|
});
|
|
mocha.run();
|
|
</script>
|
|
|
|
</body>
|
|
</html> |