Created
January 1, 2011 19:16
-
-
Save cdcarter/761931 to your computer and use it in GitHub Desktop.
couchapp tests
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
function(app) { | |
module("main"); | |
test("all should be good", function() { | |
ok(true, "all is good") | |
equal(app.db.name,"tickets") | |
}) | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CouchAppTests</title> | |
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen"> | |
<script type="text/javascript" src="qunit.js"></script> | |
<script type="text/javascript" src="/_utils/script/sha1.js"></script> | |
<script type="text/javascript" src="/_utils/script/json2.js"></script> | |
<script type="text/javascript" src="/_utils/script/jquery.js"></script> | |
<script type="text/javascript" src="/_utils/script/jquery.couch.js"></script> | |
<script type="text/javascript" src="../../vendor/couchapp/jquery.couch.app.js"></script> | |
</head> | |
<body> | |
<h1 id="qunit-header">CouchApp Tests</h1> | |
<h2 id="qunit-banner"></h2> | |
<div id="qunit-testrunner-toolbar"></div> | |
<h2 id="qunit-userAgent"></h2> | |
<ol id="qunit-tests"></ol> | |
<div id="qunit-fixture">test markup</div> | |
</body> | |
<script type="text/javascript"> | |
// QUNIT.CSS AND QUNIT.JS MUST BE IN VENDOR/QUNIT/_ATTACHMENTS FOR THIS ALL TO WORK | |
$.couch.app(function(app) { | |
eval("var tests =" + app.ddoc.tests.test); | |
tests(app); | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment