Files
faunosteo/tests/unit/components.Brand.test.tsx
T

16 lines
447 B
TypeScript

import { describe, it, expect } from 'vitest'
import { render, screen } from '@testing-library/react'
import { ConfigProvider } from '@/app/providers/ConfigProvider'
import Brand from '@/components/brand/Brand'
describe('Brand', () => {
it('renders the brand name from config', () => {
render(
<ConfigProvider>
<Brand />
</ConfigProvider>,
)
expect(screen.getByText(/Osteo Report/i)).toBeInTheDocument()
})
})