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.

Including angular-mocks breaks ngAnimate animations #5917

@scottopherson

Description

@scottopherson

I was working on an app with the latest 1.2.9 release and all was well until I started to use ngMockE2E's $httpBackend to do some backend-less development. Once angular-mocks.js was included on the page my animations would no longer work. What's interesting is removing ngMockE2E as a dependency for my app is not enough to get animations working again, angular-mocks.js must be removed entirely. Here's some fiddles to help illustrate the issue:

angular-mocks not included (works as expected):
http://jsfiddle.net/8y3Ey/

screen shot 2014-01-21 at 5 12 06 pm

angular-mocks included (animations appear to start but halt on enter):
http://jsfiddle.net/q8SQg/

screen shot 2014-01-21 at 5 07 25 pm

Current workarounds are to either remove animation classes from elements (don't use animations) or to refrain from including angular-mocks.js (don't use ngMock/ngMockE2E). There's been quite a few releases since I last used angular mocks so it's possible that I'm just doing something incorrectly.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions