mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
[web] Convert editor-left-menu tests to typescript GitOrigin-RevId: 8b12fc6dfea387a30e6fe13d117ed623e3d1840b
13 lines
468 B
TypeScript
13 lines
468 B
TypeScript
import { expect } from 'chai'
|
|
import { screen, render } from '@testing-library/react'
|
|
import HelpDocumentation from '../../../../../frontend/js/features/editor-left-menu/components/help-documentation'
|
|
|
|
describe('<HelpDocumentation />', function () {
|
|
it('has correct href attribute', function () {
|
|
render(<HelpDocumentation />)
|
|
|
|
const link = screen.getByRole('link', { name: 'Documentation' })
|
|
expect(link.getAttribute('href')).to.equal('/learn')
|
|
})
|
|
})
|