Last active
August 29, 2015 13:57
-
-
Save nkmry/af189d9003c81f374514 to your computer and use it in GitHub Desktop.
Mocha を使ってクライアントサイドのテストをするためのテンプレ
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/mocha/1.13.0/mocha.css" rel="stylesheet"/> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/mocha/1.13.0/mocha.js" type="text/javascript"></script> | |
<script src="http://chaijs.com/chai.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
mocha.setup('bdd'); | |
window.onload = mocha.run; | |
var should = chai.should(); | |
</script> | |
<script type="text/javascript"> | |
// mocha で テストを記述 | |
</script> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment