fix(test): update App.test.tsx for ProtectedRoute redirect behavior

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-03-31 18:42:47 +00:00
parent ae8c13431f
commit a3e1ce3fb5
+2 -8
View File
@@ -9,15 +9,9 @@ vi.mock('./lib/auth-client.ts', () => ({
}))
describe('App', () => {
it('renders the dashboard on the root route', () => {
it('redirects unauthenticated users to login', () => {
render(<App />)
expect(screen.getByText('CartSnitch')).toBeInTheDocument()
})
it('renders the bottom navigation', () => {
render(<App />)
expect(screen.getByText('Home')).toBeInTheDocument()
expect(screen.getByText('Purchases')).toBeInTheDocument()
expect(screen.getByText('Products')).toBeInTheDocument()
expect(screen.getByRole('button', { name: /sign in/i })).toBeInTheDocument()
})
})