<head>
  <meta charset="utf-8">
  <title>Mocha Tests</title>
  <link href="http://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
</head>
<body>
  <div id="mocha"></div>

  <script src="http://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
  <script src="http://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>

  <script>mocha.setup('bdd')</script>
  <!-- include source files here... -->
  <script type="text/javascript" src="../lib/leaflet/leaflet-src.js"></script>
  <script type="text/javascript" src="../lib/proj4-compressed.js"></script>
  <script type="text/javascript" src="../src/proj4leaflet.js"></script>

  <!-- include spec files here... -->
  <script type="text/javascript" src="test-data.js"></script>
  <script type="text/javascript" src="specs.js"></script>


  <script>
    mocha.checkLeaks();
    mocha.globals(['jQuery']);
    mocha.run();
  </script>
</body>
</html>
<head>
  <meta charset="utf-8">
  <title>Mocha Tests</title>
  <link href="http://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
</head>
<body>
  <div id="mocha"></div>

  <script src="http://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
  <script src="http://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>

  <script>
    window.initMochaPhantomJS && window.initMochaPhantomJS();
    mocha.setup('bdd');
  </script>
  <!-- include source files here... -->
  <script type="text/javascript" src="../lib/leaflet/leaflet-src.js"></script>
  <script type="text/javascript" src="../lib/proj4-compressed.js"></script>
  <script type="text/javascript" src="../src/proj4leaflet.js"></script>

  <!-- include spec files here... -->
  <script type="text/javascript" src="test-data.js"></script>
  <script type="text/javascript" src="specs.js"></script>


  <script>
    mocha.checkLeaks();
    mocha.globals(['jQuery']);
    mocha.run();
  </script>
</body>
</html>
Make sure to initialize Mocha Phantom JS for node testing.
Make sure to initialize Mocha Phantom JS for node testing.
