From 0c0db4cb3b5380adb2dc2e8ab92f112457ae80fc Mon Sep 17 00:00:00 2001 From: gustavo Date: Fri, 26 Aug 2016 04:05:49 +0200 Subject: [PATCH] Using js.spec instead of spec.js. SonarQube JavaScriptPlugin will skip spec.js from statistics. --- angularjs/stomp/karma.conf.js | 1 + .../src/stomp/app/example/example.route.js.spec | 24 ++++++++++++++++++++++ .../src/stomp/app/example/example.route.spec.js | 24 ---------------------- .../app/shared-stomp/shared-stomp.route.js.spec | 24 ++++++++++++++++++++++ .../app/shared-stomp/shared-stomp.route.spec.js | 24 ---------------------- 5 files changed, 49 insertions(+), 48 deletions(-) create mode 100644 angularjs/stomp/src/stomp/app/example/example.route.js.spec delete mode 100644 angularjs/stomp/src/stomp/app/example/example.route.spec.js create mode 100644 angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.js.spec delete mode 100644 angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.spec.js diff --git a/angularjs/stomp/karma.conf.js b/angularjs/stomp/karma.conf.js index 045f1f4..c3d29c5 100644 --- a/angularjs/stomp/karma.conf.js +++ b/angularjs/stomp/karma.conf.js @@ -37,6 +37,7 @@ module.exports = function(config) { //endbower 'src/showcase/app/**/*.module.js', 'src/showcase/app/**/*.js', + 'src/showcase/app/**/*.js.spec', '.tmp/templates.js' ], diff --git a/angularjs/stomp/src/stomp/app/example/example.route.js.spec b/angularjs/stomp/src/stomp/app/example/example.route.js.spec new file mode 100644 index 0000000..4da117f --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.route.js.spec @@ -0,0 +1,24 @@ +describe('app.example', function() { + 'use strict'; + + describe('state', function() { + var view = { + example: 'app/example/example.html' + }; + var $state; + + beforeEach(function() { + module('app.example'); + + inject(function(_$state_) { + $state = _$state_; + }); + }); + + it('should map /example route to users View template', function() { + expect($state.get('example').templateUrl).toEqual(view.example); + }); + + }); + +}); diff --git a/angularjs/stomp/src/stomp/app/example/example.route.spec.js b/angularjs/stomp/src/stomp/app/example/example.route.spec.js deleted file mode 100644 index 4da117f..0000000 --- a/angularjs/stomp/src/stomp/app/example/example.route.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -describe('app.example', function() { - 'use strict'; - - describe('state', function() { - var view = { - example: 'app/example/example.html' - }; - var $state; - - beforeEach(function() { - module('app.example'); - - inject(function(_$state_) { - $state = _$state_; - }); - }); - - it('should map /example route to users View template', function() { - expect($state.get('example').templateUrl).toEqual(view.example); - }); - - }); - -}); diff --git a/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.js.spec b/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.js.spec new file mode 100644 index 0000000..86c70c6 --- /dev/null +++ b/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.js.spec @@ -0,0 +1,24 @@ +describe('app.shared-stomp', function() { + 'use strict'; + + describe('state', function() { + var view = { + example: 'app/shared-stomp/shared-stomp.html' + }; + var $state; + + beforeEach(function() { + module('app.shared-stomp'); + + inject(function(_$state_) { + $state = _$state_; + }); + }); + + it('should map /shared-stomp route to users View template', function() { + expect($state.get('shared-stomp').templateUrl).toEqual(view.example); + }); + + }); + +}); diff --git a/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.spec.js b/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.spec.js deleted file mode 100644 index 86c70c6..0000000 --- a/angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -describe('app.shared-stomp', function() { - 'use strict'; - - describe('state', function() { - var view = { - example: 'app/shared-stomp/shared-stomp.html' - }; - var $state; - - beforeEach(function() { - module('app.shared-stomp'); - - inject(function(_$state_) { - $state = _$state_; - }); - }); - - it('should map /shared-stomp route to users View template', function() { - expect($state.get('shared-stomp').templateUrl).toEqual(view.example); - }); - - }); - -}); -- 2.1.4