mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
fix backend unit test errors
This commit is contained in:
parent
c5bca63145
commit
7e793f13f7
@ -1 +1 @@
|
||||
1.3.3
|
||||
1.3.0
|
||||
@ -34,9 +34,7 @@ jest.mock('core', () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
...originalModule,
|
||||
sendAddedContributionMessageEmail: jest.fn((a) =>
|
||||
originalModule.sendAddedContributionMessageEmail(a),
|
||||
),
|
||||
sendAddedContributionMessageEmail: jest.fn(),
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@ -58,15 +58,10 @@ jest.mock('core', () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
...originalModule,
|
||||
sendContributionDeniedEmail: jest.fn((a) =>
|
||||
originalModule.sendContributionDeniedEmail(a),
|
||||
),
|
||||
sendContributionConfirmedEmail: jest.fn((a) =>
|
||||
originalModule.sendContributionConfirmedEmail(a),
|
||||
),
|
||||
sendContributionDeletedEmail: jest.fn((a) =>
|
||||
originalModule.sendContributionDeletedEmail(a),
|
||||
),
|
||||
sendContributionDeniedEmail: jest.fn(),
|
||||
sendContributionConfirmedEmail: jest.fn(),
|
||||
sendContributionDeletedEmail: jest.fn(),
|
||||
sendEmailTranslated: jest.fn(),
|
||||
}
|
||||
})
|
||||
jest.mock('@/password/EncryptorUtils')
|
||||
|
||||
@ -78,11 +78,10 @@ jest.mock('core', () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
...originalModule,
|
||||
sendAccountActivationEmail: jest.fn((a) => originalModule.sendAccountActivationEmail(a)),
|
||||
sendAccountMultiRegistrationEmail: jest.fn((a) =>
|
||||
originalModule.sendAccountMultiRegistrationEmail(a),
|
||||
),
|
||||
sendResetPasswordEmail: jest.fn((a) => originalModule.sendResetPasswordEmail(a)),
|
||||
sendAccountActivationEmail: jest.fn(),
|
||||
sendAccountMultiRegistrationEmail: jest.fn(),
|
||||
sendResetPasswordEmail: jest.fn(),
|
||||
sendEmailTranslated: jest.fn(),
|
||||
}
|
||||
})
|
||||
|
||||
@ -154,6 +153,7 @@ describe('UserResolver', () => {
|
||||
expect(result).toEqual(
|
||||
expect.objectContaining({ data: { createUser: { id: expect.any(Number) } } }),
|
||||
)
|
||||
|
||||
})
|
||||
|
||||
describe('valid input data', () => {
|
||||
|
||||
@ -3,7 +3,7 @@ import { CONFIG } from '@/config'
|
||||
import { CONFIG as CORE_CONFIG } from 'core'
|
||||
import { getLogger, printLogs, clearLogs } from 'config-schema/test/testSetup'
|
||||
|
||||
CORE_CONFIG.EMAIL = true
|
||||
CORE_CONFIG.EMAIL = false
|
||||
CORE_CONFIG.EMAIL_TEST_MODUS = false
|
||||
CONFIG.HUMHUB_ACTIVE = false
|
||||
CONFIG.GMS_ACTIVE = false
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
||||
},
|
||||
"include": [
|
||||
"../core/src/types",
|
||||
"../core/src/types"
|
||||
],
|
||||
"ts-node": {
|
||||
"swc": true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user