0f4e6fa3f2
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2015 Co-authored-by: renovate <renovatebot@kolaente.de> Co-committed-by: renovate <renovatebot@kolaente.de>
16 lines
No EOL
448 B
JavaScript
16 lines
No EOL
448 B
JavaScript
import {ListFactory} from '../../factories/list'
|
|
import {UserFactory} from '../../factories/user'
|
|
import {NamespaceFactory} from '../../factories/namespace'
|
|
import {TaskFactory} from '../../factories/task'
|
|
|
|
export function prepareLists(setLists = () => {}) {
|
|
beforeEach(() => {
|
|
UserFactory.create(1)
|
|
NamespaceFactory.create(1)
|
|
const lists = ListFactory.create(1, {
|
|
title: 'First List'
|
|
})
|
|
setLists(lists)
|
|
TaskFactory.truncate()
|
|
})
|
|
} |