mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +00:00
39 lines
798 B
TypeScript
39 lines
798 B
TypeScript
import CONFIG from '@config/index'
|
|
|
|
CONFIG.SUPPORT_EMAIL = 'devops@ocelot.social'
|
|
|
|
// eslint-disable-next-line import-x/first
|
|
import { sendWrongEmail } from './sendEmail'
|
|
|
|
describe('sendWrongEmail', () => {
|
|
const data: {
|
|
name: string
|
|
email: string
|
|
locale: string
|
|
} = {
|
|
name: 'Bob &"?@\\ Baumeister',
|
|
email: 'moderator@example.org',
|
|
locale: 'en',
|
|
}
|
|
|
|
describe('English', () => {
|
|
beforeEach(() => {
|
|
data.locale = 'en'
|
|
})
|
|
|
|
it('renders correctly', async () => {
|
|
await expect(sendWrongEmail(data)).resolves.toMatchSnapshot()
|
|
})
|
|
})
|
|
|
|
describe('German', () => {
|
|
beforeEach(() => {
|
|
data.locale = 'de'
|
|
})
|
|
|
|
it('renders correctly', async () => {
|
|
await expect(sendWrongEmail(data)).resolves.toMatchSnapshot()
|
|
})
|
|
})
|
|
})
|