file-view-image.test.tsx 504 B

1234567891011121314
  1. import { screen } from '@testing-library/react'
  2. import { renderWithEditorContext } from '../../../helpers/render-with-context'
  3. import FileViewImage from '../../../../../frontend/js/features/file-view/components/file-view-image'
  4. import { imageFile } from '../util/files'
  5. describe('<FileViewImage />', function () {
  6. it('renders an image', function () {
  7. renderWithEditorContext(
  8. <FileViewImage file={imageFile} onError={() => {}} onLoad={() => {}} />
  9. )
  10. screen.getByRole('img')
  11. })
  12. })