Thanks to visit codestin.com
Credit goes to github.com

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.

ngMock breaks during clean-up with mocked $rootScope #14106

Closed
@gkalpak

Description

@gkalpak

#13433 introduced $rootScope clean-up after each test. The implementation assumes that $rootScope will always have a $destroy() method, which might not be true for a mocked/decorated $rootScope, resulting in an error.

Also discussed in #13985 (comment).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions