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) 480 B
describe('hello component', function () { beforeEach(module('app', function ($provide) { $provide.factory('app', function () { return { templateUrl: 'app/hello.html' }; }); })); it('should render hello world', angular.mock.inject(function ($rootScope, $compile) { var element = $compile('<app>Loading...</app>')($rootScope); $rootScope.$digest(); var h1 = element.find('h1'); expect(h1.html()).toEqual('Hello World!'); })); });