6db0559b81
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1408 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
21 lines
407 B
JavaScript
21 lines
407 B
JavaScript
import faker from '@faker-js/faker'
|
|
|
|
import {Factory} from '../support/factory'
|
|
import {formatISO} from "date-fns"
|
|
|
|
export class TaskCommentFactory extends Factory {
|
|
static table = 'task_comments'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
comment: faker.lorem.text(3),
|
|
author_id: 1,
|
|
task_id: 1,
|
|
created: formatISO(now),
|
|
updated: formatISO(now)
|
|
}
|
|
}
|
|
}
|