UNPKG

generator-xd-angular

Version:

AngularJS yeoman-generator using Angular-ui-router, sass-bootstrap, compass, mocha, gulp, font-awesome, ngdocs

20 lines (14 loc) 494 B
/*globals inject, beforeEach, describe, it, expect, module*/ describe('<%= moduleName %>', function () { var el, scope; beforeEach( module('<%= moduleName %>')); beforeEach( inject( function ($rootScope, $compile){ scope = $rootScope.$new(); el = angular.element('<<%= hyphenatedName %>></<%= hyphenatedName %>>'); $compile(el, scope); scope.$apply(); })); it('should replace with div tag', function () { expect(el.prop('tagName')).to.equal('DIV'); }); });