Skip to content

Instantly share code, notes, and snippets.

@NorthDecoder
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NorthDecoder/c4c4093c9037be3c844d to your computer and use it in GitHub Desktop.
Save NorthDecoder/c4c4093c9037be3c844d to your computer and use it in GitHub Desktop.
HTML5 template test with qunit and sinonjs
<!DOCTYPE html>
<html>
<head>
<title>JS tests</title>
<meta charset="utf-8">
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.17.1.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<input type='submit' id='context_submit' value='context'>
<script>$('#context_submit').click(function() {});</script>
</div>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="details.js"></script>
<script src="http://code.jquery.com/qunit/qunit-1.17.1.js"></script>
<script src="http://sinonjs.org/releases/sinon-1.12.2.js"></script>
<script src="tests.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment