-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix(ngMock): make $timeout.flushNext not require an expectedDelay as per documentation. #3628
Conversation
Thanks for the PR!
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
I actually think this whole @matsko @IgorMinar why do we have this |
@vojtajina the problem with
Then it will run both (since the 2nd one's delay == the flush value). The reason why we put this together is because in $animate you have a |
Convert @matsko: we should consider removing the argument altogether and instead use spies on |
I suggest removing @IgorMinar I'm taking care of this, unless you stop me ;-) @matsko If you need something special, spy on the setTimeout and do whatever you want. For instance, I don't understand why you wanna fire the |
@vojtajina I'm doing a refactor on the animation tests to remove flushNext(). The reason why it was useful was because the animation code relied on multiple $timeout calls. Now there is only one that is mandatory. Once this is ready then lets remove it. |
@jelbourn thanks for your work on this PR. I'm closing it, we are going to remove the |
No description provided.