mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test UserResolver.test.js ok, with redeemCode
This commit is contained in:
parent
4675c56790
commit
8a2ca07b2e
@ -54,6 +54,7 @@ describe('UserResolver', () => {
|
|||||||
lastName: 'Lustig',
|
lastName: 'Lustig',
|
||||||
language: 'de',
|
language: 'de',
|
||||||
publisherId: 1234,
|
publisherId: 1234,
|
||||||
|
redeemCode: 'a0000b0000c0000',
|
||||||
}
|
}
|
||||||
|
|
||||||
let result: any
|
let result: any
|
||||||
@ -126,7 +127,7 @@ describe('UserResolver', () => {
|
|||||||
it('sends an account activation email', () => {
|
it('sends an account activation email', () => {
|
||||||
const activationLink = CONFIG.EMAIL_LINK_VERIFICATION.replace(/{code}/g, emailOptIn)
|
const activationLink = CONFIG.EMAIL_LINK_VERIFICATION.replace(/{code}/g, emailOptIn)
|
||||||
expect(sendAccountActivationEmail).toBeCalledWith({
|
expect(sendAccountActivationEmail).toBeCalledWith({
|
||||||
link: activationLink,
|
link: activationLink + '/a0000b0000c0000',
|
||||||
firstName: 'Peter',
|
firstName: 'Peter',
|
||||||
lastName: 'Lustig',
|
lastName: 'Lustig',
|
||||||
email: 'peter@lustig.de',
|
email: 'peter@lustig.de',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user