mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
9e6db89311
Convert file-view components and test files to typescript GitOrigin-RevId: 277aa8fd4f3d06a322dc9d0b372eebefb26fd285
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')
|
|
})
|
|
})
|