1
0

fix(views): make tests for project history kind of work again

This commit is contained in:
kolaente
2024-03-19 00:47:25 +01:00
parent 4b903c4f48
commit 511c9aa824
3 changed files with 31 additions and 7 deletions

View File

@ -0,0 +1,19 @@
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(),
}
}
}