Created
September 14, 2020 12:40
-
-
Save Wolwer1nE/2e1ac760a9c4a1b3d15c2c744a297a03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- add mocha css, to show results --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.css"> | |
<!-- add mocha framework code --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.js"></script> | |
<script> | |
mocha.setup('bdd'); // minimal setup | |
</script> | |
<!-- add chai --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.js"></script> | |
<script> | |
// chai has a lot of stuff, let's make assert global | |
let assert = chai.assert; | |
</script> | |
</head> | |
<body> | |
<script src="pow.js"></script> | |
<!-- the script with tests (describe, it...) --> | |
<script src="test.js"></script> | |
<!-- the element with id="mocha" will contain test results --> | |
<div id="mocha"></div> | |
<!-- run tests! --> | |
<script> | |
mocha.run(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment