rename use-case to modules

This commit is contained in:
Julien Calixte
2023-04-09 12:34:43 +02:00
parent 5719fabac1
commit cd49c4cf0a
20 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,14 @@
import { faker } from '@faker-js/faker'
import type { Stepable } from '../interfaces/stepable'
import type { Taskable } from '../interfaces/taskable'
import { createStepFixture } from './step.fixture'
import { Task } from './task'
export const createTaskFixture = (
partialTask?: Partial<Taskable>,
...steps: Stepable[]
) =>
new Task(
partialTask?.id ?? faker.datatype.uuid(),
partialTask?.title ?? faker.animal.bird()
).addSteps(...(steps ?? createStepFixture()))