diff --git a/src/services/action/actionFactory.ts b/src/services/action/actionFactory.ts index 0839fc7a..5a12fd1f 100644 --- a/src/services/action/actionFactory.ts +++ b/src/services/action/actionFactory.ts @@ -1,12 +1,12 @@ -import { Action } from '.'; -import { FolderItemFactory, MemberFactory } from '..'; +import { Action } from './interfaces'; import { Context } from '@/constants'; import { faker } from '@faker-js/faker'; export const ActionFactory = (a: Partial = {}): Action => ({ id: faker.string.uuid(), - item: faker.helpers.arrayElement([FolderItemFactory(), null]), - member: faker.helpers.arrayElement([MemberFactory(), null]), + // member and item default to null + member: null, + item: null, view: faker.helpers.arrayElement(Object.values(Context)), type: faker.lorem.word(), extra: { value: faker.lorem.word() },