Created
May 9, 2013 02:36
-
-
Save naoya/5545192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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