Skip to content

Instantly share code, notes, and snippets.

@ForbesLindesay
Created September 12, 2012 07:14
Show Gist options
  • Save ForbesLindesay/3704889 to your computer and use it in GitHub Desktop.
Save ForbesLindesay/3704889 to your computer and use it in GitHub Desktop.
Component test starter template
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mocha.css" />
<link href="../build/build.css" rel="stylesheet"/>
</head>
<body>
<div id="mocha"></div>
<script src="expect.js"></script>
<script src="mocha.js"></script>
<script>
mocha.setup('bdd');
</script>
<script src="../build/build.js"></script>
<script>
(function () {
//Your test here
}());
</script>
<script>
mocha.globals(['require']).run();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment