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>
19 lines
384 B
JavaScript
19 lines
384 B
JavaScript
import faker from '@faker-js/faker'
|
|
import {Factory} from '../support/factory'
|
|
import {formatISO} from 'date-fns'
|
|
|
|
export class NamespaceFactory extends Factory {
|
|
static table = 'namespaces'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
title: faker.lorem.words(3),
|
|
owner_id: 1,
|
|
created: formatISO(now),
|
|
updated: formatISO(now)
|
|
}
|
|
}
|
|
}
|