31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Mocha Tests</title>
|
||
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
||
|
</head>
|
||
|
<body ng-app="chart.js">
|
||
|
<div id="mocha"></div>
|
||
|
<script src="../bower_components/angular/angular.min.js"></script>
|
||
|
<script src="../bower_components/Chart.js/Chart.js"></script>
|
||
|
<script src="../angular-chart.js"></script>
|
||
|
<script src="../node_modules/mocha/mocha.js"></script>
|
||
|
<script src="../node_modules/chai/chai.js"></script>
|
||
|
<script src="../node_modules/chai-string/chai-string.js"></script>
|
||
|
<script src="../node_modules/sinon/pkg/sinon.js"></script>
|
||
|
<script src="../node_modules/sinon-chai/lib/sinon-chai.js"></script>
|
||
|
<script>mocha.setup('bdd')</script>
|
||
|
<script src="../bower_components/angular-mocks/angular-mocks.js"></script>
|
||
|
<script src="../test/test.unit.js"></script>
|
||
|
<script>
|
||
|
var expect = chai.expect;
|
||
|
mocha.checkLeaks();
|
||
|
mocha.globals(['angular', 'Chart', 'angular', 'chai', 'expect', 'sinon', 'sinonChai']);
|
||
|
if (window.mochaPhantomJS)
|
||
|
mochaPhantomJS.run();
|
||
|
else
|
||
|
mocha.run();
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|