Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (22 sloc) 0.693 kb
17f4947 @dmohl Added support for Mocha in the browser and provided an example.
authored
1 <html>
2 <head>
3 <meta charset="utf-8">
4 <title>Mocha Tests</title>
5 <link rel="stylesheet" href="https://raw.github.com/visionmedia/mocha/master/mocha.css" />
6 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
7 <script src="https://raw.github.com/visionmedia/mocha/master/mocha.js"></script>
8 <script type="text/javascript" src="../lib/expectThat.mocha.js"></script>
9 <script>mocha.setup('bdd')</script>
10 <script src="./min/expectThat.mocha.specs.js"></script>
11 <script>
12 $(function () {
13 mocha
14 .run()
15 .globals(['foo', 'bar']) // acceptable globals
16 })
17 </script>
18 </head>
19 <body>
20 <div id="mocha"></div>
21 </body>
22 </html>
Something went wrong with that request. Please try again.