use mochify instead of mocha-phantomjs

This commit is contained in:
Bala Clark 2015-07-13 23:00:38 +02:00
parent 58c59de4e2
commit cbe68047f5
4 changed files with 11 additions and 31 deletions

View file

@ -1,22 +0,0 @@
<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

@ -1,8 +1,12 @@
'use strict'
let loadIndicator = require('../../app/view/load-indicator')
describe('#loadIndicator()', function () {
it('should render')
it('should render', function () {
console.log(loadIndicator())
})
it('should emit a "show" event')