Closed ghost closed 7 years ago
I couldn't fix the test completely. That's very strange.
When I do $event.preventDefault();
in handleCurrentBtnOnly
:
but, when I do return false
in handleCurrentBtnOnly
:
Sadly, I have no idea how to make the test work for the return false
case.
If you have no idea how to make the test handle return false
case, you can merge the PR, the issue is fixed.
The best I can do is make sure that handleCurrentBtnOnly
doesn't return false
Thanks for the PR. I'll try to check everything again later this week.
In pull request https://github.com/johannesjo/angular2-promise-buttons/pull/12 I broke something :-( This PR fixes the bug and and I added a test for this use-case.