vikunja-frontend/cypress/factories/task_assignee.ts
2022-07-04 21:50:48 +00:00

17 lines
No EOL
309 B
TypeScript

import {Factory} from '../support/factory'
import {formatISO} from 'date-fns'
export class TaskAssigneeFactory extends Factory {
static table = 'task_assignees'
static factory() {
const now = new Date()
return {
id: '{increment}',
task_id: 1,
user_id: 1,
created: formatISO(now),
}
}
}