summaryrefslogtreecommitdiffstats
path: root/reporting/pages/test/spec/controllers/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/pages/test/spec/controllers/main.js')
-rw-r--r--reporting/pages/test/spec/controllers/main.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/reporting/pages/test/spec/controllers/main.js b/reporting/pages/test/spec/controllers/main.js
new file mode 100644
index 0000000..b92366d
--- /dev/null
+++ b/reporting/pages/test/spec/controllers/main.js
@@ -0,0 +1,23 @@
+'use strict';
+
+describe('Controller: MainCtrl', function () {
+
+ // load the controller's module
+ beforeEach(module('opnfvApp'));
+
+ var MainCtrl,
+ scope;
+
+ // Initialize the controller and a mock scope
+ beforeEach(inject(function ($controller, $rootScope) {
+ scope = $rootScope.$new();
+ MainCtrl = $controller('MainCtrl', {
+ $scope: scope
+ // place here mocked dependencies
+ });
+ }));
+
+ it('should attach a list of awesomeThings to the scope', function () {
+ expect(MainCtrl.awesomeThings.length).toBe(3);
+ });
+});