test(e2e): add TeamProjectFactory

This commit is contained in:
kolaente 2026-04-21 11:43:26 +02:00 committed by kolaente
parent 268c5daf8b
commit 01b71577d7
1 changed files with 18 additions and 0 deletions

View File

@ -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(),
}
}
}