Permalink
Browse files

mocha script

  • Loading branch information...
1 parent 1c4f3b0 commit 239a4cf4dfb1c226762fbe4b133386e3dfefd961 @lepture lepture committed May 10, 2013
Showing with 9 additions and 2 deletions.
  1. +8 −0 templates/mocha-runner.html
  2. +1 −2 templates/snippet/head.html
@@ -6,6 +6,14 @@
<title>{% block title %}{{config.package.name|title}} Mocha Runner{% endblock %}</title>
<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>
@@ -59,7 +59,6 @@
"$": 'jquery/jquery/1.7.2/jquery',
jquery: 'jquery/jquery/1.7.2/jquery',
"jquery-debug": 'jquery/jquery/1.7.2/jquery-debug',
- mocha: "gallery/mocha/1.9.0/mocha",
expect: "gallery/expect/0.2.0/expect",
puerh: "popomore/puerh/0.1.0/puerh",
'gallery/handlebars': 'gallery/handlebars/1.0.1/handlebars',
@@ -84,7 +83,7 @@
file = file.replace(/\.(\w+)$/, '-debug.$1');
}
}
- return seajs.resolve("{{content_url('')}}/" + srcdir + "/" + file);
+ return seajs.resolve("{{content_url('')}}" + srcdir + "/" + file);
}
function contain(arr, value) {

0 comments on commit 239a4cf

Please sign in to comment.