UNPKG

angular-nevera-generator

Version:

Yeoman AngularJS scaffold a webapp with Angular 1 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma

16 lines (15 loc) 591 B
<% if (modules !== 'inject') { -%> <% include modules/component.spec.header.ts %> <% } -%> describe('<%- componentName %> component', () => { <% if (modules === 'inject') { -%> <% include inject/component.spec.ts %> <% } else { -%> <% include modules/component.spec.ts %> <% } -%> it('should...', <%- modules === 'webpack' ? 'angular.mock.' : '' %>inject(($rootScope: ng.IRootScopeService, $compile: ng.ICompileService) => { const element = $compile('<<%- componentName %>></<%- componentName %>>')($rootScope); $rootScope.$digest(); expect(element).not.toBeNull(); })); });