j-toker
Version:
Simple, secure token authentication for jQuery.
57 lines (50 loc) • 2.25 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>j-toker Test Suite</title>
<!-- coverage reporter -->
<script src='../node_modules/blanket/dist/qunit/blanket.js'></script>
<script>
if (location.href.match(/(\?|&)gruntReport($|&|=)/)) {
blanket.options(
"reporter",
"../node_modules/grunt-blanket-qunit/reporter/grunt-reporter.js"
);
}
</script>
<!-- Load plugin deps. -->
<script src="../node_modules/jquery/dist/jquery.js"></script>
<script src="../node_modules/jquery-deparam/jquery-deparam.js"></script>
<script src="../node_modules/jquery.cookie/jquery.cookie.js"></script>
<script src="../node_modules/pubsub-js/src/pubsub.js"></script>
<!-- Load local test deps. -->
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" media="screen">
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script src='../node_modules/sinon/pkg/sinon.js'></script>
<script src="../node_modules/console-polyfill/index.js"></script>
<!-- Load plugin. -->
<script src="../src/j-toker.js" data-cover></script>
<!-- Load unit tests. -->
<script src="unit/configuration.js"></script>
<script src="unit/token-validation.js"></script>
<script src="unit/email-sign-up.js"></script>
<script src="unit/password-reset-request.js"></script>
<script src="unit/email-confirmation.js"></script>
<script src="unit/email-sign-in.js"></script>
<script src="unit/password-reset-confirmation.js"></script>
<script src="unit/o-auth-sign-in.js"></script>
<script src="unit/sign-out.js"></script>
<script src="unit/update-account.js"></script>
<script src="unit/destroy-account.js"></script>
<script src="unit/update-password.js"></script>
<script src="unit/querystring.js"></script>
<!-- Removing access to jQuery and $. But it'll still be available as _$, if
you REALLY want to mess around with jQuery in the console. REMEMBER WE
ARE TESTING A PLUGIN HERE, THIS HELPS ENSURE BEST PRACTICES. REALLY. -->
<script>window._$ = jQuery.noConflict(true);</script>
</head>
<body>
<div id="qunit"></div>
</body>
</html>