-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (53 loc) · 2.45 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MochaTests</title>
<script src="greet.js">
</script>
<script src="test/greet.tests.js">
</script>
<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.min.js"></script>
</head>
<body>
<div id="mocha"></div>
<script>
// the mocha test style to use - we use BDD - Behviour Driven Development
mocha.setup('bdd');
//ensure the assert function is available
var assert = chai.assert;
</script>
<!-- the function to be tested -->
<script src="test/greet.js" charset="utf-8"></script>
<script src="test/isFromBelville.js" charset="utf-8"></script>
<script src="test/countRegNumber.js" charset="utf-8"></script>
<script src="test/regCheck.js" charset="utf-8"></script>
<script src="test/countAllPaarl.js" charset="utf-8"></script>
<script src="test/isWeekday.js" charset="utf-8"></script>
<script src="test/yearsAgo.js" charset="utf-8"></script>
<script src="test/fromWhere.js" charset="utf-8"></script>
<script src="test/transportFee.js" charset="utf-8"></script>
<script src="test/totalPhoneBill.js" charset="utf-8"></script>
<script src="test/countAllFromTown.js" charset="utf-8"></script>
<!-- followed by the tests -->
<script src="test/greet.test.js" charset="utf-8"></script>
<script src="test/isFromBelville.test.js" charset="utf-8"></script>
<script src="test/countRegNumber.test.js" charset="utf-8"></script>
<script src="test/regCheck.test.js" charset="utf-8"></script>
<script src="test/countAllPaarl.test.js" charset="utf-8"></script>
<script src="test/isWeekday.test.js" charset="utf-8"></script>
<script src="test/yearsAgo.test.js" charset="utf-8"></script>
<script src="test/fromWhere.test.js" charset="utf-8"></script>
<script src="test/transportFee.test.js" charset="utf-8"></script>
<script src="test/totalPhoneBill.test.js" charset="utf-8"></script>
<script src="test/countAllFromTown.test.js" charset="utf-8"></script>
<script>
<!-- configure and run mocha -->
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>