Skip to content

Commit eca57eb

Browse files
committed
Section 32: Mocha in the Browser
1 parent e2a2cab commit eca57eb

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • 32-The-Basics-of-Testing/06-movies/test
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Mocha Tests</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
8+
</head>
9+
<body>
10+
<div id="mocha"></div>
11+
12+
<script src="https://unpkg.com/chai/chai.js"></script>
13+
<script src="https://unpkg.com/mocha/mocha.js"></script>
14+
15+
<script class="mocha-init">
16+
mocha.setup('bdd')
17+
mocha.checkLeaks()
18+
</script>
19+
<script src="test.array.js"></script>
20+
<script src="test.object.js"></script>
21+
<script src="test.xhr.js"></script>
22+
<script class="mocha-exec">
23+
mocha.run()
24+
</script>
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)