/// /// /// 'use strict'; describe('Directive: <%= cameledName %>', () => { // load the directive's module beforeEach(module('<%= scriptAppName %>')); var element: JQuery, scope: ng.IScope; beforeEach(inject(($rootScope: ng.IRootScopeService) => { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(($compile: ng.ICompileService) => { element = angular.element('<<%= _.dasherize(name) %>>>'); element = $compile(element)(scope); expect(element.text()).toBe('this is the <%= cameledName %> directive'); })); });