I'd say also add a test that shows the HTML injection (which spurred the PR) isn't possible. Given an attacker-controlled URL of:
foo onclick
the following shouldn't render: <a class="item muted sidebar-item-link" href=foo onclick>
The following should: <a class="item muted sidebar-item-link" href="foo onclick">