Skip to content

Instantly share code, notes, and snippets.

@naoya
Created May 9, 2013 02:36
Show Gist options
  • Save naoya/5545192 to your computer and use it in GitHub Desktop.
Save naoya/5545192 to your computer and use it in GitHub Desktop.
DOCTYPE html
html
head
title Test'em
link rel="stylesheet" href="/testem/mocha.css"
script src="/testem.js"
script src="/public/js/vendor/requirejs/require.js"
body
#mocha
javascript:
require.config({
baseUrl: '/public/js',
paths: {
mocha: "vendor/mocha/mocha",
expect: "vendor/expect/expect"
},
shim: {
mocha: {
exports: "mocha"
}
}
});
require(['require', 'mocha', 'expect'], function (require, mocha, expect) {
mocha.setup('bdd');
var files = [];
{{#serve_files}}files.push("../{{src}}");{{/serve_files}}
require(files, function() {
mocha.run();
});
});
/ FIMXE
script type="text/x-underscore-template" id="tag-template"
span.tag <%- tag %>
span.delete
| [x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment