setting up test runner
This commit is contained in:
parent
5bac5a1b8d
commit
58c59de4e2
3 changed files with 45 additions and 5 deletions
22
test/index.html
Normal file
22
test/index.html
Normal 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>
|
10
test/lib/load-indicator.js
Normal file
10
test/lib/load-indicator.js
Normal 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')
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue