import { expect } from 'chai'
import { screen, render } from '@testing-library/react'
import NewsletterSection from '../../../../../frontend/js/features/settings/components/newsletter-section'
describe('', function () {
it('shows link to sessions', async function () {
render()
const link = screen.getByRole('link', {
name: 'Manage Your Newsletter Preferences',
})
expect(link.getAttribute('href')).to.equal('/user/email-preferences')
})
})