vikunja-frontend/cypress/factories/list.js
Dominik Pschenitschni 78baf4c662
fix(faker): imports
2022-06-22 21:30:30 +02:00

20 lines
No EOL
395 B
JavaScript

import {Factory} from '../support/factory'
import {formatISO} from "date-fns"
import {faker} from '@faker-js/faker'
export class ListFactory extends Factory {
static table = 'lists'
static factory() {
const now = new Date()
return {
id: '{increment}',
title: faker.lorem.words(3),
owner_id: 1,
namespace_id: 1,
created: formatISO(now),
updated: formatISO(now)
}
}
}