Create an example that includes tests and how to run them. #122 (#130)

This commit is contained in:
Mykyta Khmel
2016-12-01 01:09:28 +02:00
committed by Kumar McMillan
parent 01181a350b
commit 395786e353
19 changed files with 214 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link href="node_modules/mocha/mocha.css" rel="stylesheet"/>
</head>
<body>
<div id="mocha"></div>
<script src="scripts/browser-polyfill.min.js"></script>
<script src="scripts/popup.js"></script>
<div>Hello! Lets play at <span id="game">ping</span></div>
<!-- TESTS -->
<script src="node_modules/expect.js/index.js"></script>
<script src="node_modules/mocha/mocha.js"></script>
<script src="tests/mocha-setup.js"></script>
<script src="tests/lib/test.array.js"></script>
<script src="tests/lib/background-messaging.test.js"></script>
<script src="tests/mocha-run.js"></script>
<!-- /TESTS -->
</body>
</html>