-
Notifications
You must be signed in to change notification settings - Fork 134
/
SpecRunner.html
31 lines (30 loc) · 955 Bytes
/
SpecRunner.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
<!DOCTYPE HTML>
<html>
<head>
<title>Mocha Spec Runner</title>
<link rel="stylesheet" href="lib/mocha/mocha.css">
<script src="lib/jquery.js"></script>
<script src="lib/underscore.js"></script>
<script src="lib/mocha/mocha.js"></script>
<script src="lib/chai/chai.js"></script>
<script src="lib/sinon/sinon.js"></script>
<script>
mocha.setup({ui: 'bdd'});
window.expect = chai.expect;
$(function() {
window.mochaPhantomJS ? mochaPhantomJS.run() : mocha.run();
});
</script>
<script src="src/sumArray.js"></script>
<script src="src/power.js"></script>
<script src="src/nthFibonacci.js"></script>
<script src="src/getElementsByClassName.js"></script>
<script src="spec/sumArraySpec.js"></script>
<script src="spec/powerSpec.js"></script>
<script src="spec/nthFibonacciSpec.js"></script>
<script src="spec/getElementsByClassNameSpec.js"></script>
</head>
<body>
<div id="mocha"></div>
</body>
</html>