This reverts commit e80c491a10db6f5757c568430e17d9cbb613c5b4. GitOrigin-RevId: dbe0de698bc7349e5b8f9712d1d13998e41ab528
15 lines
504 B
TypeScript
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')
|
|
})
|
|
})
|