feat: rename files with list to project
This commit is contained in:

committed by
Gitea

parent
ee732684bc
commit
b9d3b5c756
19
cypress/e2e/project/prepareProjects.ts
Normal file
19
cypress/e2e/project/prepareProjects.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import {ListFactory} from '../../factories/list'
|
||||
import {NamespaceFactory} from '../../factories/namespace'
|
||||
import {TaskFactory} from '../../factories/task'
|
||||
|
||||
export function createLists() {
|
||||
NamespaceFactory.create(1)
|
||||
const lists = ListFactory.create(1, {
|
||||
title: 'First List'
|
||||
})
|
||||
TaskFactory.truncate()
|
||||
return lists
|
||||
}
|
||||
|
||||
export function prepareLists(setLists = (...args: any[]) => {}) {
|
||||
beforeEach(() => {
|
||||
const lists = createLists()
|
||||
setLists(lists)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user