From 0aac418165e183e8c3e086c9b5171d2289498914 Mon Sep 17 00:00:00 2001 From: RidhamShah Date: Fri, 30 Aug 2024 09:47:17 +0530 Subject: [PATCH] solve failing testcases --- .../FeatureFlags/FeatureFlagInclusionExclusion.ts | 4 ++-- .../Upgrade/test/unit/services/FeatureFlagService.test.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/packages/Upgrade/test/integration/FeatureFlags/FeatureFlagInclusionExclusion.ts b/backend/packages/Upgrade/test/integration/FeatureFlags/FeatureFlagInclusionExclusion.ts index 8de3731111..9508946425 100644 --- a/backend/packages/Upgrade/test/integration/FeatureFlags/FeatureFlagInclusionExclusion.ts +++ b/backend/packages/Upgrade/test/integration/FeatureFlags/FeatureFlagInclusionExclusion.ts @@ -20,7 +20,7 @@ export default async function FeatureFlagInclusionExclusionLogic(): Promise { mockList.enabled = true; mockList.flagId = mockFlag1.id; mockList.listType = 'individual'; - mockList.list = { + mockList.segment = { name: 'name', id: uuid(), context: 'context', @@ -363,7 +363,7 @@ describe('Feature Flag Service Testing', () => { }); it('should delete an include list', async () => { - const result = await service.deleteList(mockList.list.id, logger); + const result = await service.deleteList(mockList.segment.id, logger); expect(result).toBeTruthy(); });