diff --git a/angularjs/angular-mocks-tests.ts b/angularjs/angular-mocks-tests.ts index b94c58f9e4..64df49d8ad 100644 --- a/angularjs/angular-mocks-tests.ts +++ b/angularjs/angular-mocks-tests.ts @@ -22,13 +22,13 @@ mock.inject( ); mock.inject( - ['$rootScope', function ($rootScope) { return 1; }]); + ['$rootScope', function ($rootScope: ng.IRootScopeService) { return 1; }]); // This overload is not documented on the website, but flows from // how the injector works. mock.inject( - ['$rootScope', function ($rootScope) { return 1; }], - ['$rootScope', function ($rootScope) { return 2; }]); + ['$rootScope', function ($rootScope: ng.IRootScopeService) { return 1; }], + ['$rootScope', function ($rootScope: ng.IRootScopeService) { return 2; }]); mock.module('module1', 'module2'); mock.module(