mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
22 lines
510 B
TypeScript
22 lines
510 B
TypeScript
import { ITeam, ITeamSummary } from "interfaces/team";
|
|
|
|
const DEFAULT_MOCK_TEAM_SUMMARY: ITeamSummary = {
|
|
id: 1,
|
|
name: "Team 1",
|
|
};
|
|
|
|
const DEFAUT_TEAM_MOCK: ITeam = {
|
|
...DEFAULT_MOCK_TEAM_SUMMARY,
|
|
};
|
|
|
|
export const createMockTeamSummary = (
|
|
overrides?: Partial<ITeamSummary>
|
|
): ITeamSummary => {
|
|
return { ...DEFAULT_MOCK_TEAM_SUMMARY, ...overrides };
|
|
};
|
|
|
|
const createMockTeam = (overrides?: Partial<ITeam>): ITeam => {
|
|
return { ...DEFAUT_TEAM_MOCK, ...overrides };
|
|
};
|
|
export default createMockTeam;
|