From 0f7a86487a938269ea2e6ea372923953f2433364 Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Wed, 21 Feb 2024 09:45:41 +0100 Subject: [PATCH] feat: update factory item and member default (#420) --- src/services/action/actionFactory.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() },