From a7738a1d485a08ab8464208bff5b14dc51ac044e Mon Sep 17 00:00:00 2001 From: Yadickson Soto Date: Tue, 24 Oct 2017 17:55:25 -0300 Subject: [PATCH] Update karma test and dependencies --- README.md | 8 ++++---- bower.json | 2 -- karma.conf.js | 18 ------------------ test/angular-ys-service-keyboard.js | 1 + 4 files changed, 5 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 0d56003..0664e8e 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ $ bower install --save angular-ys-factory-keyboard@~1.0.0 ### Install develop dependencies ``` -$ bower install --save-dev mocha@~3.5.3 -$ bower install --save-dev chai@~4.1.2 $ bower install --save-dev angular-mocks@~1.3.20 ``` @@ -39,8 +37,10 @@ $ npm install --save-dev babel-preset-babili ``` $ npm install --save-dev bower -$ npm install --save-dev karma chai mocha -$ npm install --save-dev karma-chai karma-bro karma-mocha karma-phantomjs-launcher +$ npm install --save-dev karma +$ npm install --save-dev chai karma-chai +$ npm install --save-dev mocha karma-mocha +$ npm install --save-dev karma-bro karma-phantomjs-launcher $ npm install --save-dev karma-coverage karma-istanbul $ npm install --save-dev karma-mocha-reporter karma-junit-reporter $ npm install --save-dev coveralls diff --git a/bower.json b/bower.json index 3444d0b..d893ae3 100644 --- a/bower.json +++ b/bower.json @@ -29,8 +29,6 @@ "angular-ys-factory-keyboard": "~1.0.0" }, "devDependencies": { - "mocha": "~3.5.3", - "chai": "~4.1.2", "angular-mocks": "~1.3.20" } } diff --git a/karma.conf.js b/karma.conf.js index 28c799a..4b6db79 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -7,8 +7,6 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ - 'bower_components/mocha/mocha.js', - 'bower_components/chai/chai.js', 'bower_components/jquery/dist/jquery.js', 'bower_components/angular/angular.js', 'bower_components/angular-mocks/angular-mocks.js', @@ -51,22 +49,6 @@ module.exports = function(config) { ] }, - mochaReporter: { - colors: { - success: 'blue', - info: 'bgGreen', - warning: 'cyan', - error: 'bgRed' - }, - symbols: { - success: '+', - info: '#', - warning: '!', - error: 'x' - }, - output: 'autowatch' - }, - junitReporter: { outputDir: 'reports', outputFile: 'test-results.xml', diff --git a/test/angular-ys-service-keyboard.js b/test/angular-ys-service-keyboard.js index eb8ce1b..0b56243 100644 --- a/test/angular-ys-service-keyboard.js +++ b/test/angular-ys-service-keyboard.js @@ -99,6 +99,7 @@ it('Check other', inject(function(ysServiceKeyboard) { expect(ysServiceKeyboard.isDecimalNumber('Other')).to.be.false; })); + }); });