mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +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, '__')
|
const spyTranslate = jest.spyOn(i18n, '__')
|
||||||
|
|
||||||
describe('sendEmailTranslated', () => {
|
describe('sendEmailTranslated', () => {
|
||||||
let result: Record<string, unknown> | boolean | null
|
let result: Record<string, unknown> | boolean | null | Error
|
||||||
|
|
||||||
describe('config email is false', () => {
|
describe('config email is false', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { Decimal } from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { CONFIG } from '../config'
|
import { CONFIG } from '../config'
|
||||||
|
import { mock, jest, describe, it, expect, beforeAll, beforeEach, afterAll } from 'bun:test'
|
||||||
|
|
||||||
import * as sendEmailTranslatedApi from './sendEmailTranslated'
|
import * as sendEmailTranslatedApi from './sendEmailTranslated'
|
||||||
import {
|
import {
|
||||||
@ -25,7 +26,7 @@ CONFIG.EMAIL_SMTP_HOST = testMailServerHost
|
|||||||
CONFIG.EMAIL_SMTP_PORT = testMailServerPort
|
CONFIG.EMAIL_SMTP_PORT = testMailServerPort
|
||||||
CONFIG.EMAIL_TLS = testMailTLS
|
CONFIG.EMAIL_TLS = testMailTLS
|
||||||
|
|
||||||
jest.mock('nodemailer', () => {
|
mock.module('nodemailer', () => {
|
||||||
return {
|
return {
|
||||||
__esModule: true,
|
__esModule: true,
|
||||||
createTransport: jest.fn(() => {
|
createTransport: jest.fn(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user