Adjusted tests for mail types

ref #5
This commit is contained in:
Nicolai Ort 2021-03-05 18:39:56 +01:00
parent 0fa94fc867
commit 8271014a10
3 changed files with 18 additions and 9 deletions

View File

@ -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"
})
});
});

View File

@ -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"
})
});
});

View File

@ -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"
})
});
});