Add multiselect.

This commit is contained in:
Drew 2025-09-22 21:21:30 -07:00
parent 843d2a8c7b
commit b09a072fb9
7 changed files with 235 additions and 21 deletions

View file

@ -4,12 +4,12 @@ import Home from './home'
describe('Home component', () => {
it('should render task management interface', () => {
render(<Home />)
expect(screen.getByText(/Tasks/i)).toBeInTheDocument()
const mockLoaderData = { tasks: [] }
render(<Home loaderData={mockLoaderData} />)
expect(
screen.getByText(/GTD-inspired task management system/i)
screen.getByRole('heading', { level: 1, name: /Tasks/i })
).toBeInTheDocument()
// TaskList component should be rendered (initially shows loading state)
expect(screen.getByText(/Loading.../i)).toBeInTheDocument()
// TaskList component should be rendered with empty state
expect(screen.getByText(/No tasks found/i)).toBeInTheDocument()
})
})