Conform unit test to coding conventions

This commit is contained in:
Frédéric Vachon 2015-01-15 15:54:02 -05:00
parent e6aeebf929
commit 16f55b012f
6 changed files with 66 additions and 54 deletions

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('NavBarCtrl', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('SideBarCtrl', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('TacticalCurrentHealth', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('TacticalStatusOverViewCtrl', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('TacticalCtrl', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));

View File

@ -1,14 +1,16 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict'; '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) { it('should be defined', inject(function ($controller) {
var scope = {}; var scope, ctrl;
var ctrl = $controller('TacticalTopAlertProducers', {$scope:scope}); scope = {};
ctrl = $controller('NavBarCtrl', { $scope : scope });
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
})); }));