Files
dify/web/app/components/app/annotation/empty-element.spec.tsx
2025-12-18 15:17:22 +08:00

14 lines
512 B
TypeScript

import React from 'react'
import { render, screen } from '@testing-library/react'
import EmptyElement from './empty-element'
describe('EmptyElement', () => {
it('should render the empty state copy and supporting icon', () => {
const { container } = render(<EmptyElement />)
expect(screen.getByText('appAnnotation.noData.title')).toBeInTheDocument()
expect(screen.getByText('appAnnotation.noData.description')).toBeInTheDocument()
expect(container.querySelector('svg')).not.toBeNull()
})
})