chore: rename js files to ts
This commit is contained in:
parent
7fe9f17e43
commit
321850ec20
36 changed files with 0 additions and 0 deletions
19
cypress/factories/namespace.ts
Normal file
19
cypress/factories/namespace.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import {faker} from '@faker-js/faker'
|
||||
import {Factory} from '../support/factory'
|
||||
import {formatISO} from 'date-fns'
|
||||
|
||||
export class NamespaceFactory extends Factory {
|
||||
static table = 'namespaces'
|
||||
|
||||
static factory() {
|
||||
const now = new Date()
|
||||
|
||||
return {
|
||||
id: '{increment}',
|
||||
title: faker.lorem.words(3),
|
||||
owner_id: 1,
|
||||
created: formatISO(now),
|
||||
updated: formatISO(now)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue