mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
correct errors after master merge
This commit is contained in:
parent
60c3749119
commit
1ead1bc4a8
@ -41,7 +41,7 @@ const spySetLocale = jest.spyOn(i18n, 'setLocale')
|
||||
const spyTranslate = jest.spyOn(i18n, '__')
|
||||
|
||||
describe('sendEmailTranslated', () => {
|
||||
let result: Record<string, unknown> | boolean | null
|
||||
let result: Record<string, unknown> | boolean | null | Error
|
||||
|
||||
describe('config email is false', () => {
|
||||
beforeEach(async () => {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Decimal } from 'decimal.js-light'
|
||||
import { CONFIG } from '../config'
|
||||
import { mock, jest, describe, it, expect, beforeAll, beforeEach, afterAll } from 'bun:test'
|
||||
|
||||
import * as sendEmailTranslatedApi from './sendEmailTranslated'
|
||||
import {
|
||||
@ -25,7 +26,7 @@ CONFIG.EMAIL_SMTP_HOST = testMailServerHost
|
||||
CONFIG.EMAIL_SMTP_PORT = testMailServerPort
|
||||
CONFIG.EMAIL_TLS = testMailTLS
|
||||
|
||||
jest.mock('nodemailer', () => {
|
||||
mock.module('nodemailer', () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
createTransport: jest.fn(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user