mobilizon.chapril.org-mobil.../js/tests/unit/specs/common.ts
Thomas Citharel 2978ae5d1e
Fix some warnings in js unit tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 14:25:38 +02:00

21 lines
482 B
TypeScript

import { ICurrentUserRole } from "@/types/enums";
export const defaultResolvers = {
Query: {
currentUser: (): Record<string, any> => ({
email: "user@mail.com",
id: "2",
role: ICurrentUserRole.USER,
isLoggedIn: true,
__typename: "CurrentUser",
}),
currentActor: (): Record<string, any> => ({
id: "67",
preferredUsername: "someone",
name: "Personne",
avatar: null,
__typename: "CurrentActor",
}),
},
};