use mochify instead of mocha-phantomjs
This commit is contained in:
parent
58c59de4e2
commit
cbe68047f5
4 changed files with 11 additions and 31 deletions
|
@ -1,2 +1 @@
|
|||
|
||||
<div id="cb-loading-overlay" class="cb-control"></div>
|
||||
|
|
13
package.json
13
package.json
|
@ -13,7 +13,7 @@
|
|||
"build": "npm run build",
|
||||
"buildjs": "rm -f dist/*.js && browserify --transform babelify --transform browserify-handlebars app/index.js --debug | exorcist dist/comicbook.js.map > dist/comicbook.js",
|
||||
"pretest": "standard",
|
||||
"test": "mocha-phantomjs test/index.html"
|
||||
"test": "mochify --transform babelify --transform browserify-handlebars test/**/*.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -26,14 +26,14 @@
|
|||
}
|
||||
],
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"assets",
|
||||
"dist"
|
||||
],
|
||||
"global": [
|
||||
"describe",
|
||||
"it"
|
||||
],
|
||||
"ignore": [
|
||||
"assets",
|
||||
"dist"
|
||||
],
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -45,8 +45,7 @@
|
|||
"cssmin": "^0.4.3",
|
||||
"exorcist": "^0.4.0",
|
||||
"handlebars": "^3.0.3",
|
||||
"mocha": "^2.2.5",
|
||||
"mocha-phantomjs": "^3.5.3",
|
||||
"mochify": "^2.10.0",
|
||||
"phantomjs": "^1.9.17",
|
||||
"standard": "^4.5.3",
|
||||
"uglify-js": "^2.4.23"
|
||||
|
|
|
@ -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>
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue