-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (54 loc) · 2.62 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>
<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>
<title>Home</title>
</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="greet.js" charset="utf-8"></script>
<script src="isFromBellville.js" charset="utf-8"></script>
<script src="regCheck.js" charset="utf-8"></script>
<script src="countRegNumber.js" charset="utf-8"></script>
<script src="isWeekday.js" charset="utf-8"></script>
<script src="yearsAgo.js" charset="utf-8"></script>
<script src="countAllPaarl.js" charset="utf-8"></script>
<script src="countAllFromTown.js" charset="utf-8"></script>
<script src="transportFee.js" charset="utf-8"></script>
<script src="totalPhoneBill.js" charset="utf-8"></script>
<script src="fromWhere.js" charset="utf-8"></script>
<script src="findItemsOver20.js" charset="utf-8"></script>
<script src="findItemsOver.js" charset="utf-8"></script>
<script src="mostProfitableDepartment.js" charset="utf-8"></script>
<!-- followed by the tests -->
<script src="test/greet.tests.js" charset="utf-8"></script>
<script src="test/isFromBellville.tests.js" charset="utf-8"></script>
<script src="test/regCheck.tests.js" charset="utf-8"></script>
<script src="test/countRegNumber.tests.js" charset="utf-8"></script>
<script src="test/isWeekday.tests.js" charset="utf-8"></script>
<script src="test/yearsAgo.tests.js" charset="utf-8"></script>
<script src="test/countAllPaarl.tests.js" charset="utf-8"></script>
<script src="test/countAllFromTown.tests.js" charset="utf-8"></script>
<script src="test/transportFee.tests.js" charset="utf-8"></script>
<script src="test/totalPhoneBill.tests.js" charset="utf-8"></script>
<script src="test/fromWhere.tests.js" charset="utf-8"></script>
<script src="test/findItemsOver20.tests.js" charset="utf-8"></script>
<script src="test/findItemsOver.tests.js" charset="utf-8"></script>
<script src="test/mostProfitableDepartment_tests.js" charset="utf-8"></script>
<script>
<!-- configure and run mocha -->
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>