declare var angular; // this is purely here for the test coverage describe('angular module', function () { it('correctly registers directive', function () { // Arrange angular.mock.module('angular-infinite-scroller'); let rs: ng.IRootScopeService; let compileService: ng.ICompileService; inject(['$rootScope', '$compile', function (rootScope, compile) { rs = rootScope; compileService = compile; }]); const elm = angular.element( '