fe6d975134
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/366 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
17 lines
No EOL
303 B
JavaScript
17 lines
No EOL
303 B
JavaScript
import {Factory} from '../support/factory'
|
|
import {formatISO} from 'date-fns'
|
|
|
|
export class LabelTaskFactory extends Factory {
|
|
static table = 'label_task'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
task_id: 1,
|
|
label_id: 1,
|
|
created: formatISO(now),
|
|
}
|
|
}
|
|
} |