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

22 lines
439 B
JavaScript

import {Factory} from '../support/factory'
import {formatISO} from "date-fns"
import {faker} from '@faker-js/faker'
export class LinkShareFactory extends Factory {
static table = 'link_shares'
static factory() {
const now = new Date()
return {
id: '{increment}',
hash: faker.random.word(32),
list_id: 1,
right: 0,
sharing_type: 0,
shared_by_id: 1,
created: formatISO(now),
updated: formatISO(now)
}
}
}