UNPKG

generator-mycroftx-component

Version:

Yeoman generator and modified generator-ng-component

22 lines (16 loc) 704 B
'use strict'; describe('Directive: <%= cameledName %>', function () { // load the directive's module beforeEach(module('<%= scriptAppName %>')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { element = angular.element('<<%= _.dasherize(name) %>></<%= _.dasherize(name) %>>'); element = $compile(element)(scope);<% if (hasFilter('jasmine')) { %> expect(element.text()).toBe('this is the <%= cameledName %> directive');<% } if (hasFilter('mocha')) { %> expect(element.text()).to.equal('this is the <%= cameledName %> directive');<% } %> })); });