diff --git a/src/tests/pw_reset_mail.spec.ts b/src/tests/pw_reset_mail.spec.ts index d43f3a3..aeb4692 100644 --- a/src/tests/pw_reset_mail.spec.ts +++ b/src/tests/pw_reset_mail.spec.ts @@ -42,7 +42,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "PASSWORD_RESET" }) }); it('Post with auth, body and locale=en should return 200', async () => { @@ -54,7 +55,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "PASSWORD_RESET" }) }); it('Post with auth, body and locale=de should return 200', async () => { @@ -66,7 +68,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "de" + locale: "de", + type: "PASSWORD_RESET" }) }); }); \ No newline at end of file diff --git a/src/tests/selfservice_welcome_mail.spec.ts b/src/tests/selfservice_welcome_mail.spec.ts index 709eec0..f9bb7ee 100644 --- a/src/tests/selfservice_welcome_mail.spec.ts +++ b/src/tests/selfservice_welcome_mail.spec.ts @@ -42,7 +42,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "RUNNER_WELCOME" }) }); it('Post with auth, body and locale=en should return 200', async () => { @@ -54,7 +55,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "RUNNER_WELCOME" }) }); it('Post with auth, body and locale=de should return 200', async () => { @@ -66,7 +68,8 @@ describe('POST /reset with auth and vaild body', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "de" + locale: "de", + type: "RUNNER_WELCOME" }) }); }); \ No newline at end of file diff --git a/src/tests/test_mail.spec.ts b/src/tests/test_mail.spec.ts index ff3dac6..9d88dc6 100644 --- a/src/tests/test_mail.spec.ts +++ b/src/tests/test_mail.spec.ts @@ -20,7 +20,8 @@ describe('POST /test with auth', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "TEST" }) }); it('Post with auth and locale=en should return 200', async () => { @@ -29,7 +30,8 @@ describe('POST /test with auth', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "en" + locale: "en", + type: "TEST" }) }); it('Post with auth and locale=de should return 200', async () => { @@ -38,7 +40,8 @@ describe('POST /test with auth', () => { expect(res.data).toEqual({ success: true, message: "Sent!", - locale: "de" + locale: "de", + type: "TEST" }) }); }); \ No newline at end of file