This commit is contained in:
8
src/pages/__tests__/DashboardPage.test.tsx
Normal file
8
src/pages/__tests__/DashboardPage.test.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { DashboardPage } from '../DashboardPage'
|
||||
import { expect, test } from 'vitest'
|
||||
|
||||
test('renders dashboard headline', () => {
|
||||
render(<DashboardPage />)
|
||||
expect(screen.getByText(/Välkommen till HemHub/i)).toBeInTheDocument()
|
||||
})
|
||||
Reference in New Issue
Block a user