diff options
Diffstat (limited to 'reporting/pages/test/spec/directives/mydirective.js')
-rw-r--r-- | reporting/pages/test/spec/directives/mydirective.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/reporting/pages/test/spec/directives/mydirective.js b/reporting/pages/test/spec/directives/mydirective.js new file mode 100644 index 0000000..598c9de --- /dev/null +++ b/reporting/pages/test/spec/directives/mydirective.js @@ -0,0 +1,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'); + })); +}); |