diff --git a/frontend/tests/factories/team_project.ts b/frontend/tests/factories/team_project.ts new file mode 100644 index 000000000..f9e635e7b --- /dev/null +++ b/frontend/tests/factories/team_project.ts @@ -0,0 +1,18 @@ +import {Factory} from '../support/factory' + +export class TeamProjectFactory extends Factory { + static table = 'team_projects' + + static factory() { + const now = new Date() + + return { + id: '{increment}', + team_id: 1, + project_id: 1, + permission: 0, + created: now.toISOString(), + updated: now.toISOString(), + } + } +}