mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
17 lines
513 B
TypeScript
17 lines
513 B
TypeScript
|
import { expect } from 'chai'
|
||
|
import { screen, render } from '@testing-library/react'
|
||
|
|
||
|
import NewsletterSection from '../../../../../frontend/js/features/settings/components/newsletter-section'
|
||
|
|
||
|
describe('<NewsletterSection />', function () {
|
||
|
it('shows link to sessions', async function () {
|
||
|
render(<NewsletterSection />)
|
||
|
|
||
|
const link = screen.getByRole('link', {
|
||
|
name: 'Manage Your Newsletter Preferences',
|
||
|
})
|
||
|
|
||
|
expect(link.getAttribute('href')).to.equal('/user/email-preferences')
|
||
|
})
|
||
|
})
|