Skip to content
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
@swar30

Description

@swar30

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) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions