-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtestRunner.html
More file actions
31 lines (25 loc) · 949 Bytes
/
testRunner.html
File metadata and controls
31 lines (25 loc) · 949 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mocha Tests</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.2.0/mocha.min.css" />
</head>
<body>
<div id="mocha"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/4.2.0/chai.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chai-spies@1.0.0/chai-spies.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.2.0/mocha.min.js"></script>
<script>mocha.setup('bdd')</script>
<!-- load code you want to test here -->
<script src="pokemon.js"></script>
<script src="test.pokemon.js"></script>
<!-- load your test files here -->
<script>
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>