'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(''); element = $compile(element)(scope); expect(element.text()).toBe('this is the myDirective directive'); })); });