Created
November 5, 2017 15:35
-
-
Save petarnonkovic/d66df93f6b52a2caff064ee359c4b727 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>Running Tests in Browser TDD TestDrivenDevelopment</title> | |
<link rel="stylesheet" type="text/css" href="node_modules/mocha/mocha.css"> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script src="node_modules/mocha/mocha.js"></script> | |
<script src="node_modules/chai/chai.js"></script> | |
<!-- use 'bdd' interface --> | |
<script>mocha.setup('bdd')</script> | |
<!-- use 'tdd' interface --> | |
<!-- <script>mocha.setup('tdd')</script> --> | |
<!-- load code you want to test here --> | |
<!-- load your test files here --> | |
<script> | |
mocha.run(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment