test/test-amd.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../bower_components/mocha/mocha.css">
<style>
#mocha .test pre {
font-family: "Ricty";
}
</style>
<title>Tests on Browser with RequireJS</title>
</head>
<body>
<div id="mocha"></div>
<script type="text/javascript" src="../bower_components/mocha/mocha.js"></script>
<script type="text/javascript" src="./rjsconfig.js"></script>
<script type="text/javascript" src="../bower_components/requirejs/require.js"></script>
<script type="text/javascript">
mocha.setup('tdd');
require([
"./options_test",
"./power_assert_formatter_test"
], function() {
mocha.checkLeaks();
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {
mocha.run();
}
});
</script>
</body>
</html>