forked from ryan-roemer/backbone-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
33 lines (28 loc) · 831 Bytes
/
test.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
<html>
<head>
<title>Backbone.js Tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Mocha styles. -->
<link rel="stylesheet" href="js/lib/mocha.css" />
<!-- Test libraries. -->
<script src="js/lib/mocha.js"></script>
<script src="js/lib/chai.js"></script>
<script src="js/lib/sinon.js"></script>
<!-- Test Setup -->
<script>
// Setup.
var expect = chai.expect;
mocha.setup("bdd");
// Run tests on window load event.
window.onload = function () {
(window.mochaPhantomJS || mocha).run();
};
</script>
<!-- Tests. -->
<script src="js/spec/hello.spec.js"></script>
</head>
<body>
<div id="mocha"></div>
</body>
</html>