mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
test: improve coverage for some files (#33218)
This commit is contained in:
1 parent
68982f910e
commit
ed5511ce28
61 files changed
+3191
-304
No files matched your search
@@ -25,4 +25,9 @@ describe('Loading Component', () => {
|
||||
const svgElement = container.querySelector('svg')
|
||||
expect(svgElement).toHaveClass('spin-animation')
|
||||
})
|
||||
|
||||
it('handles undefined props correctly', () => {
|
||||
const { container } = render(Loading() as unknown as React.ReactElement)
|
||||
expect(container.firstChild).toHaveClass('flex w-full items-center justify-center')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user