mobilizon.chapril.org-mobil.../js/tests/unit/specs/mocks/auth.ts
Thomas Citharel 77200ea587
Add unit tests on Login component
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-16 14:57:03 +02:00

21 lines
400 B
TypeScript

export const loginMock = {
email: "some@email.tld",
password: "somepassword",
};
export const loginResponseMock = {
data: {
login: {
__typename: "Login",
accessToken: "some access token",
refreshToken: "some refresh token",
user: {
__typename: "User",
email: "some@email.tld",
id: "1",
role: "ADMINISTRATOR",
},
},
},
};