mirror of https://github.com/langgenius/dify.git
16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import * as React from 'react'
|
|
import NoData from './index'
|
|
|
|
describe('NoData', () => {
|
|
beforeEach(() => {
|
|
vi.clearAllMocks()
|
|
})
|
|
it('should render empty state icon and text when mounted', () => {
|
|
const { container } = render(<NoData />)
|
|
|
|
expect(container.querySelector('svg')).toBeInTheDocument()
|
|
expect(screen.getByText('share.generation.noData')).toBeInTheDocument()
|
|
})
|
|
})
|