-
Notifications
You must be signed in to change notification settings - Fork 0
/
MochaChaiTestRunner.html
47 lines (44 loc) · 1.49 KB
/
MochaChaiTestRunner.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE HTML>
<html>
<head>
<title>Code Chrysalis ES6 Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<link rel="stylesheet" href="lib/css/mocha.css" />
<script src="lib/jquery.js"></script>
<script src="lib/expect.js"></script>
<script src="lib/mocha.js"></script>
<script src="lib/sinon.js"></script>
<script src="lib/picomodal.js"></script>
<script src="lib/tweet.js"></script>
<script>
mocha.setup('bdd');
</script>
<!-- All of our salarymen here -->
<script src="src/Student.js"></script>
<script src="src/Shinsotsu.js"></script>
<script src="src/BossSalaryMan.js"></script>
<script src="src/WorkerSalaryMan.js"></script>
<script src="src/RetiredWorkerSalaryMan.js"></script>
<!-- All of our tests here -->
<script src="specs/_Student.js"></script>
<script src="specs/_Shinsotsu.js"></script>
<script src="specs/_BossSalaryMan.js"></script>
<script src="specs/_WorkerSalaryMan.js"></script>
<script src="specs/_RetiredWorkerSalaryMan.js"></script>
<script>
// This just sets up and runs the tests. We use mocha and chai here and you can ignore these for now.
onload = function(){
var runner = window.mochaPhantomJS ? mochaPhantomJS.run() : mocha.run();
runner.on('end', function() {
if(!this.failures){
window.tweet();
}
});
};
</script>
</head>
<body>
<div id="mocha"></div>
</body>
</html>