Using js.spec instead of spec.js. SonarQube JavaScriptPlugin will skip spec.js from...
authorgustavo <gu.martinm@gmail.com>
Fri, 26 Aug 2016 02:05:49 +0000 (04:05 +0200)
committergustavo <gu.martinm@gmail.com>
Fri, 26 Aug 2016 02:05:49 +0000 (04:05 +0200)
angularjs/stomp/karma.conf.js
angularjs/stomp/src/stomp/app/example/example.route.js.spec [new file with mode: 0644]
angularjs/stomp/src/stomp/app/example/example.route.spec.js [deleted file]
angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.js.spec [new file with mode: 0644]
angularjs/stomp/src/stomp/app/shared-stomp/shared-stomp.route.spec.js [deleted file]

index 045f1f4..c3d29c5 100644 (file)
@@ -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 (file)
index 0000000..4da117f
--- /dev/null
@@ -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 (file)
index 4da117f..0000000
+++ /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 (file)
index 0000000..86c70c6
--- /dev/null
@@ -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 (file)
index 86c70c6..0000000
+++ /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);
-    });
-
-  });
-
-});