summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/pages/test/spec/controllers/main.js
blob: b92366db6a4afabb82a239377c694c24a9a45d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
  });
});