test(e2e): add TeamProjectFactory
This commit is contained in:
parent
268c5daf8b
commit
01b71577d7
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue