vikunja-frontend/cypress/factories/task_assignee.js

17 lines
309 B
JavaScript
Raw Permalink Normal View History

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