diff --git a/app/view/template/load-indicator.handlebars b/app/view/template/load-indicator.handlebars index c9abda2..d9b8304 100644 --- a/app/view/template/load-indicator.handlebars +++ b/app/view/template/load-indicator.handlebars @@ -1,2 +1 @@ -
diff --git a/package.json b/package.json index a6be06e..a5c52f7 100644 --- a/package.json +++ b/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" diff --git a/test/index.html b/test/index.html deleted file mode 100644 index 6d5f46f..0000000 --- a/test/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test/lib/load-indicator.js b/test/lib/load-indicator.js index 65a4322..e6b2c1d 100644 --- a/test/lib/load-indicator.js +++ b/test/lib/load-indicator.js @@ -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')