Closed vbence86 closed 7 years ago
Hey @vbence86, isn't there anything else that could make it fail? Are there no other types of invalid urls we should catch? Maybe we're just missing more cases so the name isn't confusing anymore? 😉
Yes, I agree on that it'd be better off aiming for better coverage of eventualities. I'm happy to pick it up and augment the unit tests with further individual cases. My proposal is to keep the assertion as tiny as possible so that when it fails it can be captured easily as opposed to one big function that incorporates numerous assertions.
The only question I've still got is whether we want to go down this road of utilizing the parseFromAnchor functionality. The result of altering an href
attribute can vary greatly across platforms and browsers, hence the failing tests currently.
Please advise me on the foregoing concern.
I've added a screenshot that describe my concerns further:
Intent
To dispel confusion about against what the affected test case is executed.