This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/cypress/factories/label_task.js
kolaente 2e02a82afe
All checks were successful
continuous-integration/drone/push Build is passing
Fix table names in test fixtures
2021-03-30 20:41:05 +02:00

17 lines
304 B
JavaScript

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