This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
angular-mocks strictDi mode doesn't work because of missing annotation on $RootScopeDecorator #10273
Closed
Description
If attempting to run tests with
angular.mock.inject.strictDi(true)
tests will fail with missing annotation for $RootScopeDecorator which is defined in angular-mocks.js
The code to blame is (74981c9#diff-2a255ed5e9564e25ce6eb711b604f40fR2046)
angular.mock.$RootScopeDecorator = function($delegate)
It should be like the rest of the decorators defined, like
angular.mock.$RootScopeDecorator = ['$delegate', function($delegate)