setting up test runner

This commit is contained in:
Bala Clark 2015-07-13 22:38:53 +02:00
parent 5bac5a1b8d
commit 58c59de4e2
3 changed files with 45 additions and 5 deletions

22
test/index.html Normal file
View file

@ -0,0 +1,22 @@
<html>
<head>
<meta charset="utf-8">
<!-- encoding must be set for mocha's special characters to render properly -->
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script>
mocha.ui('bdd');
mocha.reporter('html');
assert = chai.assert
</script>
<script src="lib/load-indicator.js"></script>
<script>
if (window.mochaPhantomJS) mochaPhantomJS.run()
else mocha.run()
</script>
</body>
</html>

View file

@ -0,0 +1,10 @@
'use strict'
describe('#loadIndicator()', function () {
it('should render')
it('should emit a "show" event')
it('should emit a "hide" event')
})