Files
Verso/services/web/test/frontend/features/file-view/components/file-view-image.test.tsx
T
Miguel SerranoandCopybot ad651a22fa Revert "[web] Add SVG support to file-view panel (#32155)" (#33832)
This reverts commit e80c491a10db6f5757c568430e17d9cbb613c5b4.

GitOrigin-RevId: dbe0de698bc7349e5b8f9712d1d13998e41ab528
2026-05-21 08:06:28 +00:00

15 lines
504 B
TypeScript

import { screen } from '@testing-library/react'
import { renderWithEditorContext } from '../../../helpers/render-with-context'
import FileViewImage from '../../../../../frontend/js/features/file-view/components/file-view-image'
import { imageFile } from '../util/files'
describe('<FileViewImage />', function () {
it('renders an image', function () {
renderWithEditorContext(
<FileViewImage file={imageFile} onError={() => {}} onLoad={() => {}} />
)
screen.getByRole('img')
})
})