mirror of
https://github.com/langgenius/dify.git
synced 2026-02-02 17:11:17 +08:00
Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
533 B
TypeScript
22 lines
533 B
TypeScript
import { cleanup, render } from '@testing-library/react'
|
|
import { afterEach, describe, expect, it } from 'vitest'
|
|
import DatasetsLoading from './loading'
|
|
|
|
afterEach(() => {
|
|
cleanup()
|
|
})
|
|
|
|
describe('DatasetsLoading', () => {
|
|
it('should render null', () => {
|
|
const { container } = render(<DatasetsLoading />)
|
|
expect(container.firstChild).toBeNull()
|
|
})
|
|
|
|
it('should not throw on multiple renders', () => {
|
|
expect(() => {
|
|
render(<DatasetsLoading />)
|
|
render(<DatasetsLoading />)
|
|
}).not.toThrow()
|
|
})
|
|
})
|