parent
0fa94fc867
commit
8271014a10
|
@ -42,7 +42,8 @@ describe('POST /reset with auth and vaild body', () => {
|
||||||
expect(res.data).toEqual({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "PASSWORD_RESET"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth, body and locale=en should return 200', async () => {
|
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({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "PASSWORD_RESET"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth, body and locale=de should return 200', async () => {
|
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({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "de"
|
locale: "de",
|
||||||
|
type: "PASSWORD_RESET"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -42,7 +42,8 @@ describe('POST /reset with auth and vaild body', () => {
|
||||||
expect(res.data).toEqual({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "RUNNER_WELCOME"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth, body and locale=en should return 200', async () => {
|
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({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "RUNNER_WELCOME"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth, body and locale=de should return 200', async () => {
|
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({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "de"
|
locale: "de",
|
||||||
|
type: "RUNNER_WELCOME"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -20,7 +20,8 @@ describe('POST /test with auth', () => {
|
||||||
expect(res.data).toEqual({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "TEST"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth and locale=en should return 200', async () => {
|
it('Post with auth and locale=en should return 200', async () => {
|
||||||
|
@ -29,7 +30,8 @@ describe('POST /test with auth', () => {
|
||||||
expect(res.data).toEqual({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "en"
|
locale: "en",
|
||||||
|
type: "TEST"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
it('Post with auth and locale=de should return 200', async () => {
|
it('Post with auth and locale=de should return 200', async () => {
|
||||||
|
@ -38,7 +40,8 @@ describe('POST /test with auth', () => {
|
||||||
expect(res.data).toEqual({
|
expect(res.data).toEqual({
|
||||||
success: true,
|
success: true,
|
||||||
message: "Sent!",
|
message: "Sent!",
|
||||||
locale: "de"
|
locale: "de",
|
||||||
|
type: "TEST"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue