dify/web/features/skills/detail/__tests__/shell.spec.tsx

12 lines
368 B
TypeScript

import { render } from '@testing-library/react'
import { describe, expect, it } from 'vite-plus/test'
import { DetailSkeleton } from '../shell'
describe('Skill detail shell', () => {
it('renders the loading skeleton layout', () => {
const { container } = render(<DetailSkeleton />)
expect(container.firstChild).toHaveAttribute('aria-busy', 'true')
})
})