initial commit
This commit is contained in:
36
lemur/tests/js/.jshintrc
Normal file
36
lemur/tests/js/.jshintrc
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"node": true,
|
||||
"browser": true,
|
||||
"esnext": true,
|
||||
"bitwise": true,
|
||||
"camelcase": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"quotmark": "single",
|
||||
"regexp": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"strict": true,
|
||||
"trailing": true,
|
||||
"smarttabs": true,
|
||||
"globals": {
|
||||
"after": false,
|
||||
"afterEach": false,
|
||||
"angular": false,
|
||||
"before": false,
|
||||
"beforeEach": false,
|
||||
"browser": false,
|
||||
"describe": false,
|
||||
"expect": false,
|
||||
"inject": false,
|
||||
"it": false,
|
||||
"jasmine": false,
|
||||
"spyOn": false
|
||||
}
|
||||
}
|
||||
|
10
lemur/tests/js/runner.html
Normal file
10
lemur/tests/js/runner.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>End2end Test Runner</title>
|
||||
<script src="vendor/angular-scenario.js" ng-autotest></script>
|
||||
<script src="scenarios.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
22
lemur/tests/js/spec/controllers/certificatecreate.js
Normal file
22
lemur/tests/js/spec/controllers/certificatecreate.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: CertificatecreateCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('lemurApp'));
|
||||
|
||||
var CertificatecreateCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
CertificatecreateCtrl = $controller('CertificatecreateCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(scope.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
22
lemur/tests/js/spec/controllers/certificates.js
Normal file
22
lemur/tests/js/spec/controllers/certificates.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: CertificatesCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('lemurApp'));
|
||||
|
||||
var CertificatesCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
CertificatesCtrl = $controller('CertificatesCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(scope.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
22
lemur/tests/js/spec/controllers/dashboard.js
Normal file
22
lemur/tests/js/spec/controllers/dashboard.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: DashboardCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('lemurApp'));
|
||||
|
||||
var DashboardCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
DashboardCtrl = $controller('DashboardCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(scope.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
22
lemur/tests/js/spec/controllers/elbs.js
Normal file
22
lemur/tests/js/spec/controllers/elbs.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: ElbsCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('lemurApp'));
|
||||
|
||||
var ElbsCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
ElbsCtrl = $controller('ElbsCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(scope.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
22
lemur/tests/js/spec/controllers/main.js
Normal file
22
lemur/tests/js/spec/controllers/main.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: MainCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('lemurApp'));
|
||||
|
||||
var MainCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
MainCtrl = $controller('MainCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(scope.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user