Skip to content

Instantly share code, notes, and snippets.

@emjayess
Created May 11, 2011 19:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emjayess/967096 to your computer and use it in GitHub Desktop.
Save emjayess/967096 to your computer and use it in GitHub Desktop.
QUnit boilerplate markup
<!DOCTYPE html>
<html>
<head>
<title>javascript unit tests...</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css"/>
</head>
<body>
<h1 id="qunit-header">QUnit Sample</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://code.jquery.com/qunit/git/qunit.js"></script>
<script>
$(function(){
module( 'My Module' );
test('my test', function() {
expect( 2 );
equals( true, false, 'failing equality test' );
equals( true, true, 'passing equality test' );
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment