fix tests

This commit is contained in:
Ulf Gebhardt 2023-04-11 13:12:51 +02:00
parent 06fc7a729c
commit 67a5458a97
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -50,8 +50,8 @@ describe('sendEmailVariants', () => {
let result: any let result: any
describe('sendAddedContributionMessageEmail', () => { describe('sendAddedContributionMessageEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendAddedContributionMessageEmail({ result = await sendAddedContributionMessageEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -128,8 +128,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendAccountActivationEmail', () => { describe('sendAccountActivationEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendAccountActivationEmail({ result = await sendAccountActivationEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -208,8 +208,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendAccountMultiRegistrationEmail', () => { describe('sendAccountMultiRegistrationEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendAccountMultiRegistrationEmail({ result = await sendAccountMultiRegistrationEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -288,8 +288,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendContributionConfirmedEmail', () => { describe('sendContributionConfirmedEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendContributionConfirmedEmail({ result = await sendContributionConfirmedEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -368,8 +368,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendContributionDeniedEmail', () => { describe('sendContributionDeniedEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendContributionDeniedEmail({ result = await sendContributionDeniedEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -446,8 +446,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendContributionDeletedEmail', () => { describe('sendContributionDeletedEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendContributionDeletedEmail({ result = await sendContributionDeletedEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -524,8 +524,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendResetPasswordEmail', () => { describe('sendResetPasswordEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendResetPasswordEmail({ result = await sendResetPasswordEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -602,8 +602,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendTransactionLinkRedeemedEmail', () => { describe('sendTransactionLinkRedeemedEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendTransactionLinkRedeemedEmail({ result = await sendTransactionLinkRedeemedEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',
@ -683,8 +683,8 @@ describe('sendEmailVariants', () => {
}) })
describe('sendTransactionReceivedEmail', () => { describe('sendTransactionReceivedEmail', () => {
beforeAll(() => { beforeAll(async () => {
result = sendTransactionReceivedEmail({ result = await sendTransactionReceivedEmail({
firstName: 'Peter', firstName: 'Peter',
lastName: 'Lustig', lastName: 'Lustig',
email: 'peter@lustig.de', email: 'peter@lustig.de',