You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea behind own helper function is that someone may want to lowercase / uppercase text or remove all spaces etc. And to cover all possible cases in ng-mocks can end up with lots of helpers which might be complicated to maintain.
The text was updated successfully, but these errors were encountered:
There is
ngMocks.formatHtml
, and I've seen that injest
innerText
doesn't work. At least, for me its value was always empty.Therefore, to add a helper to get only formatted text makes sense.
But, responsibility how to find related
debugElements
anddebugNodes
, I would suggest to keep outside of this function.Own helpers can be like that
Idea behind own helper function is that someone may want to lowercase / uppercase text or remove all spaces etc. And to cover all possible cases in
ng-mocks
can end up with lots of helpers which might be complicated to maintain.The text was updated successfully, but these errors were encountered: