-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (31 loc) · 1.1 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
<!DOCTYPE html>
<html>
<head>
<title>
Testing
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.js" charset="utf-8"></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="greet.js" charset="utf-8"></script>
<script src = "isFromBellville.js" charset = "utf-8"></script>
<!-- followed by the tests -->
<script src="test/greet.test.js" charset="utf-8"></script>
<script src = "test/isFromBellville.test.js" charset = "utf-8"></script>
<script>
// <!-- configure and run mocha -->
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>