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

Fix the ngMock issue with ngAnimate #5941

Closed
wants to merge 2 commits into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Jan 23, 2014

BREAKING CHANGE

This will break existing use of mock.animate. But the module itself is undocumented so it shouldn't be an issue.

Closes #5822
Closes #5917

@ghost ghost assigned matsko Jan 23, 2014
@IgorMinar
Copy link
Contributor

otherwise lgtm

@tbosch tbosch modified the milestones: 1.2.12, 1.2.11 Feb 3, 2014
The flushNext method of testing is difficult and highly coupled with the behavior
of ngAnimate's $animate workflow. It is much better instead to just queue all
$animate animation calls into a queue collection which is available on the $animate
service when mock.animate is included as a module within test code.
@matsko
Copy link
Contributor Author

matsko commented Feb 6, 2014

MERGED

@matsko
Copy link
Contributor Author

matsko commented Feb 6, 2014

Landed as 4224cd5

@matsko matsko closed this Feb 6, 2014
@matsko matsko deleted the ng_animate_mock_fix branch February 6, 2014 06:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Including angular-mocks breaks ngAnimate animations Remove ngAnimate - ngMock Hack
3 participants