Adjusted tests for mail types

ref #5
This commit is contained in:
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"
})
});
});