mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-09 01:52:57 -05:00
17 lines
482 B
TypeScript
17 lines
482 B
TypeScript
|
import { expect } from 'chai'
|
||
|
import { screen, render } from '@testing-library/react'
|
||
|
|
||
|
import SessionsSection from '../../../../../frontend/js/features/settings/components/sessions-section'
|
||
|
|
||
|
describe('<SessionsSection />', function () {
|
||
|
it('shows link to sessions', async function () {
|
||
|
render(<SessionsSection />)
|
||
|
|
||
|
const link = screen.getByRole('link', {
|
||
|
name: 'Manage Your Sessions',
|
||
|
})
|
||
|
|
||
|
expect(link.getAttribute('href')).to.equal('/user/sessions')
|
||
|
})
|
||
|
})
|