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

Commit 9a83f9d

Browse files
shahatapkozlowski-opensource
authored andcommitted
fix(ngMock): annotate $RootScopeDecorator
Fixes #10273 Closes #10275 Closes #10277
1 parent 3f07eb2 commit 9a83f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngMock/angular-mocks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ angular.mock.e2e.$httpBackendDecorator =
20472047
*
20482048
* In addition to all the regular `Scope` methods, the following helper methods are available:
20492049
*/
2050-
angular.mock.$RootScopeDecorator = function($delegate) {
2050+
angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
20512051

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

@@ -2119,7 +2119,7 @@ angular.mock.$RootScopeDecorator = function($delegate) {
21192119

21202120
return count;
21212121
}
2122-
};
2122+
}];
21232123

21242124

21252125
if (window.jasmine || window.mocha) {

0 commit comments

Comments
 (0)