mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
23 lines
526 B
TypeScript
23 lines
526 B
TypeScript
import { IUser } from "interfaces/user";
|
|
|
|
const DEFAULT_HOST_MOCK: IUser = {
|
|
created_at: "2022-01-01T12:00:00Z",
|
|
updated_at: "2022-01-02T12:00:00Z",
|
|
id: 1,
|
|
name: "Test User",
|
|
email: "testUser@test.com",
|
|
role: "admin",
|
|
force_password_reset: false,
|
|
gravatar_url: "http://test.com",
|
|
sso_enabled: false,
|
|
global_role: "admin",
|
|
api_only: false,
|
|
teams: [],
|
|
};
|
|
|
|
const createMockUser = (overrides?: Partial<IUser>): IUser => {
|
|
return { ...DEFAULT_HOST_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockUser;
|