From 16f55b012f8abc48c595cd5a779f69d14b7cb607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vachon?= Date: Thu, 15 Jan 2015 15:54:02 -0500 Subject: [PATCH] Conform unit test to coding conventions --- app/navbar/navbar_test.js | 20 ++++++++++--------- app/sidebar/sidebar_test.js | 20 ++++++++++--------- .../current_health/current_health_test.js | 20 ++++++++++--------- .../status_overview/status_overview_test.js | 20 ++++++++++--------- app/tactical/tactical_test.js | 20 ++++++++++--------- .../top_alert_producers_test.js | 20 ++++++++++--------- 6 files changed, 66 insertions(+), 54 deletions(-) diff --git a/app/navbar/navbar_test.js b/app/navbar/navbar_test.js index 3447dee..b690b53 100644 --- a/app/navbar/navbar_test.js +++ b/app/navbar/navbar_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Navbar module', function() { +describe('Navbar module', function () { - beforeEach(module('adagios.navbar')); + beforeEach(module('adagios.navbar')); - describe('NavBarCtrl', function() { + describe('NavBarCtrl', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('NavBarCtrl', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); }); diff --git a/app/sidebar/sidebar_test.js b/app/sidebar/sidebar_test.js index 5fecb73..ec4f534 100644 --- a/app/sidebar/sidebar_test.js +++ b/app/sidebar/sidebar_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Sidebar module', function() { +describe('Sidebar module', function () { - beforeEach(module('adagios.sidebar')); + beforeEach(module('adagios.sidebar')); - describe('SideBarCtrl', function() { + describe('SideBarCtrl', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('SideBarCtrl', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); }); diff --git a/app/tactical/current_health/current_health_test.js b/app/tactical/current_health/current_health_test.js index c61e4e2..d6de352 100644 --- a/app/tactical/current_health/current_health_test.js +++ b/app/tactical/current_health/current_health_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Current Health tactical submodule', function() { +describe('Current Health tactical submodule', function () { - beforeEach(module('adagios.tactical.current_health')); + beforeEach(module('adagios.tactical.current_health')); - describe('TacticalCurrentHealth', function() { + describe('TacticalCurrentHealth', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('TacticalCurrentHealth', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); }); diff --git a/app/tactical/status_overview/status_overview_test.js b/app/tactical/status_overview/status_overview_test.js index 8c2c4ca..53f1261 100644 --- a/app/tactical/status_overview/status_overview_test.js +++ b/app/tactical/status_overview/status_overview_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Status Overview tactical submodule', function() { +describe('Status Overview tactical submodule', function () { - beforeEach(module('adagios.tactical.status_overview')); + beforeEach(module('adagios.tactical.status_overview')); - describe('TacticalStatusOverViewCtrl', function() { + describe('TacticalStatusOverViewCtrl', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('TacticalStatusOverViewCtrl', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); }); diff --git a/app/tactical/tactical_test.js b/app/tactical/tactical_test.js index 9931073..a6e7379 100644 --- a/app/tactical/tactical_test.js +++ b/app/tactical/tactical_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Tactical module', function() { +describe('Tactical module', function () { - beforeEach(module('adagios.tactical')); + beforeEach(module('adagios.tactical')); - describe('TacticalCtrl', function() { + describe('TacticalCtrl', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('TacticalCtrl', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); }); diff --git a/app/tactical/top_alert_producers/top_alert_producers_test.js b/app/tactical/top_alert_producers/top_alert_producers_test.js index 1e3daa7..0340214 100644 --- a/app/tactical/top_alert_producers/top_alert_producers_test.js +++ b/app/tactical/top_alert_producers/top_alert_producers_test.js @@ -1,17 +1,19 @@ +/*global describe, beforeEach, it, inject, expect*/ 'use strict'; -describe('Top Alert Producer tactical submodule', function() { +describe('Top Alert Producer tactical submodule', function () { - beforeEach(module('adagios.tactical.top_alert_producers')); + beforeEach(module('adagios.tactical.top_alert_producers')); - describe('TacticalTopAlertProducers', function() { + describe('TacticalTopAlertProducers', function () { - it('should be defined', inject(function($controller) { - var scope = {}; - var ctrl = $controller('TacticalTopAlertProducers', {$scope:scope}); + it('should be defined', inject(function ($controller) { + var scope, ctrl; + scope = {}; + ctrl = $controller('NavBarCtrl', { $scope : scope }); - expect(ctrl).toBeDefined(); - })); + expect(ctrl).toBeDefined(); + })); - }); + }); });