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

18 lines
403 B
JavaScript

import {faker} from '@faker-js/faker'
import {Factory} from '../support/factory'
import {formatISO} from 'date-fns'
export class TeamFactory extends Factory {
static table = 'teams'
static factory() {
const now = new Date()
return {
name: faker.lorem.words(3),
created_by_id: 1,
created: formatISO(now),
updated: formatISO(now)
}
}
}