Permalink
Browse files

don't repeat loading mocha

  • Loading branch information...
1 parent 239a4cf commit 9e3ac25a5692880221a2f7271758a3485111a787 @lepture lepture committed May 10, 2013
Showing with 2 additions and 9 deletions.
  1. +2 −9 templates/mocha-runner.html
@@ -7,18 +7,11 @@
<link href="{{static_url('css/mocha.css')}}" type="text/css" rel="stylesheet" charset="utf-8">
{%- include "snippet/head.html" %}
<script src="{{config.assets_host}}/gallery/mocha/1.9.0/mocha.js"></script>
- <script type="text/javascript">
- seajs.config({
- alias: {
- mocha: "gallery/mocha/1.9.0/mocha"
- }
- });
- </script>
</head>
<body>
<div id="mocha"></div>
<script>
- seajs.use('mocha', function() {
+ (function() {
mocha.setup('bdd');
{%- set specs = spec_files %}
@@ -36,7 +29,7 @@
mocha.run()
}
})
- });
+ })();
</script>
</body>
</html>

0 comments on commit 9e3ac25

Please sign in to comment.