mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
18 lines
555 B
TypeScript
18 lines
555 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import IndeterminateIcon from './indeterminate-icon'
|
|
|
|
describe('IndeterminateIcon', () => {
|
|
describe('Rendering', () => {
|
|
it('should render without crashing', () => {
|
|
render(<IndeterminateIcon />)
|
|
expect(screen.getByTestId('indeterminate-icon')).toBeInTheDocument()
|
|
})
|
|
|
|
it('should render an svg element', () => {
|
|
const { container } = render(<IndeterminateIcon />)
|
|
const svg = container.querySelector('svg')
|
|
expect(svg).toBeInTheDocument()
|
|
})
|
|
})
|
|
})
|