vikunja/frontend/cypress/factories/project_view.ts
kolaente 511c9aa824
Some checks failed
continuous-integration/drone/pr Build is failing
fix(views): make tests for project history kind of work again
2024-03-19 00:47:52 +01:00

19 lines
393 B
TypeScript

import {Factory} from '../support/factory'
import {faker} from '@faker-js/faker'
export class ProjectViewFactory extends Factory {
static table = 'project_views'
static factory() {
const now = new Date()
return {
id: '{increment}',
title: faker.lorem.words(3),
project_id: '{increment}',
view_kind: 0,
created: now.toISOString(),
updated: now.toISOString(),
}
}
}