style: format navigation tests

This commit is contained in:
Codex
2026-07-30 22:21:29 +08:00
parent 4fbc902325
commit 95abd09c39
@@ -53,8 +53,20 @@ describe('useBrowserPathname', () => {
}); });
it.each([ it.each([
['target window', <a href="/automation" target="_blank">Excluded</a>, {}], [
['download', <a href="/automation" download>Excluded</a>, {}], 'target window',
<a href="/automation" target="_blank">
Excluded
</a>,
{},
],
[
'download',
<a href="/automation" download>
Excluded
</a>,
{},
],
['external origin', <a href="https://example.com/automation">Excluded</a>, {}], ['external origin', <a href="https://example.com/automation">Excluded</a>, {}],
['hash-only navigation', <a href="/fleet#cards">Excluded</a>, {}], ['hash-only navigation', <a href="/fleet#cards">Excluded</a>, {}],
['middle click', <a href="/automation">Excluded</a>, { button: 1 }], ['middle click', <a href="/automation">Excluded</a>, { button: 1 }],