Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngMock): explicitly annotate $rootScopeDecorator #10277

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,9 @@ angular.mock.e2e.$httpBackendDecorator =
*
* In addition to all the regular `Scope` methods, the following helper methods are available:
*/
angular.mock.$RootScopeDecorator = function($delegate) {
$RootScopeDecorator.$inject = ['$delegate'];
angular.mock.$RootScopeDecorator = $RootScopeDecorator;
function $RootScopeDecorator($delegate) {

var $rootScopePrototype = Object.getPrototypeOf($delegate);

Expand Down Expand Up @@ -2119,7 +2121,7 @@ angular.mock.$RootScopeDecorator = function($delegate) {

return count;
}
};
}


if (window.jasmine || window.mocha) {
Expand Down