mirror of
https://github.com/lbr77/SideImpactor.git
synced 2026-05-06 11:14:01 -04:00
refactor: Rename
This commit is contained in:
@@ -23,7 +23,7 @@ describe('Header', () => {
|
||||
it('wordmark click also navigates to login (and prevents the anchor default)', async () => {
|
||||
const onNav = vi.fn();
|
||||
render(<Header currentPage="sign" onNavigate={onNav} />);
|
||||
const link = screen.getByRole('link', { name: /AltStore Web/ });
|
||||
const link = screen.getByRole('link', { name: /Side Impactor/ });
|
||||
await userEvent.click(link);
|
||||
expect(onNav).toHaveBeenCalledWith('login');
|
||||
// Hash should not have been mutated by the default anchor behavior.
|
||||
|
||||
@@ -20,7 +20,7 @@ export function Header({ currentPage, onNavigate }: HeaderProps) {
|
||||
<span className="inline-flex h-6 w-6 items-center justify-center rounded-md bg-ink text-[10px] font-bold text-white">
|
||||
A
|
||||
</span>
|
||||
AltStore Web
|
||||
Side Impactor
|
||||
</a>
|
||||
<nav className="seg" aria-label="Page">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user