Conform unit test to coding conventions
This commit is contained in:
parent
e6aeebf929
commit
16f55b012f
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user