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>
|
<div id="cb-loading-overlay" class="cb-control"></div>
|
||||||
|
|
13
package.json
13
package.json
|
@ -13,7 +13,7 @@
|
||||||
"build": "npm run build",
|
"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",
|
"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",
|
"pretest": "standard",
|
||||||
"test": "mocha-phantomjs test/index.html"
|
"test": "mochify --transform babelify --transform browserify-handlebars test/**/*.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -26,14 +26,14 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
|
||||||
"assets",
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"global": [
|
"global": [
|
||||||
"describe",
|
"describe",
|
||||||
"it"
|
"it"
|
||||||
],
|
],
|
||||||
|
"ignore": [
|
||||||
|
"assets",
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"parser": "babel-eslint"
|
"parser": "babel-eslint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -45,8 +45,7 @@
|
||||||
"cssmin": "^0.4.3",
|
"cssmin": "^0.4.3",
|
||||||
"exorcist": "^0.4.0",
|
"exorcist": "^0.4.0",
|
||||||
"handlebars": "^3.0.3",
|
"handlebars": "^3.0.3",
|
||||||
"mocha": "^2.2.5",
|
"mochify": "^2.10.0",
|
||||||
"mocha-phantomjs": "^3.5.3",
|
|
||||||
"phantomjs": "^1.9.17",
|
"phantomjs": "^1.9.17",
|
||||||
"standard": "^4.5.3",
|
"standard": "^4.5.3",
|
||||||
"uglify-js": "^2.4.23"
|
"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'
|
'use strict'
|
||||||
|
|
||||||
|
let loadIndicator = require('../../app/view/load-indicator')
|
||||||
|
|
||||||
describe('#loadIndicator()', function () {
|
describe('#loadIndicator()', function () {
|
||||||
|
|
||||||
it('should render')
|
it('should render', function () {
|
||||||
|
console.log(loadIndicator())
|
||||||
|
})
|
||||||
|
|
||||||
it('should emit a "show" event')
|
it('should emit a "show" event')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue