tellform/public/lib/raven-js/test/index.html
2015-07-14 13:45:54 -07:00

63 lines
1.6 KiB
HTML

<!doctype html>
<html>
<head>
<title>Raven.js Test Suite</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../node_modules/grunt-mocha/node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- Mocha -->
<script src="../node_modules/grunt-mocha/node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script>
mocha.ui('bdd');
mocha.reporter('html');
var assert = chai.assert
</script>
<!-- Mocking -->
<script src="../node_modules/sinon/pkg/sinon.js"></script>
<script>
beforeEach(function() {
this.sinon = sinon.sandbox.create();
});
afterEach(function() {
this.sinon.restore();
});
</script>
<!-- Raven -->
<script src="../vendor/TraceKit/tracekit.js"></script>
<script src="../src/raven.js"></script>
<!-- Tests -->
<script src="raven.test.js"></script>
<script>
if (!window.PHANTOMJS) {
(function(runner){
var failed = [];
runner.on('fail', function(test, err){
failed.push({
title: test.title,
fullTitle: test.fullTitle(),
error: {
message: err.message,
stack: err.stack
}
});
});
runner.on('end', function(){
runner.stats.failed = failed;
global.mochaResults = runner.stats;
});
})(mocha.run());
}
</script>
</body>
</html>