UNPKG

generator-ngfs

Version:

Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node

21 lines (15 loc) 550 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); expect(element.text()).toBe('this is the <%= cameledName %> directive'); })); });