summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/pages/test/spec/directives/mydirective.js
blob: 598c9de4d42ed8b751b663c711788c0f9c13fe6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';

describe('Directive: myDirective', function () {

  // load the directive's module
  beforeEach(module('opnfvApp'));

  var element,
    scope;

  beforeEach(inject(function ($rootScope) {
    scope = $rootScope.$new();
  }));

  it('should make hidden element visible', inject(function ($compile) {
    element = angular.element('<my-directive></my-directive>');
    element = $compile(element)(scope);
    expect(element.text()).toBe('this is the myDirective directive');
  }));
});