mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Convert file-view components and test files to typescript GitOrigin-RevId: 277aa8fd4f3d06a322dc9d0b372eebefb26fd285
14 lines
454 B
TypeScript
14 lines
454 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import FileViewRefreshError from '@/features/file-view/components/file-view-refresh-error'
|
|
import { imageFile } from '../util/files'
|
|
|
|
describe('<FileViewRefreshError />', function () {
|
|
it('shows correct error message', function () {
|
|
render(
|
|
<FileViewRefreshError file={imageFile} refreshError="An error message" />
|
|
)
|
|
|
|
screen.getByText('Access Denied: An error message')
|
|
})
|
|
})
|