generator-mocha
Version:
Yeoman generator for Mocha
39 lines (36 loc) • 945 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>Mocha Spec Runner</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script>
<script>mocha.setup('<%= ui %>');</script>
<script src="../node_modules/chai/chai.js"></script>
<script>
var assert = chai.assert;
var expect = chai.expect;
var should = chai.should();
</script><% if (rjs) { %>
<script src="../node_modules/requirejs/require.js"></script>
<script>
require([
// include spec files here
'spec/test'
], function () {
mocha.run();
});
</script><% } else { %>
<!-- include source files here... -->
<!-- include spec files here... -->
<script src="spec/test.js"></script>
<script>
if (navigator.userAgent.indexOf('PhantomJS') === -1) {
mocha.run();
}
</script><% } %>
</body>
</html>