Skip to content

Commit

Permalink
solve failing testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
RidhamShah committed Aug 30, 2024
1 parent fb02b2a commit 0aac418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function FeatureFlagInclusionExclusionLogic(): Promise<void
flagId: flag.id,
listType: 'group',
enabled: true,
list: {
segment: {
name: 'Feature Flag 1 Inclusion Segment',
description: 'Feature Flag 1 Inclusion Segment',
context: 'home',
Expand All @@ -35,7 +35,7 @@ export default async function FeatureFlagInclusionExclusionLogic(): Promise<void
flagId: flag.id,
listType: 'individual',
enabled: true,
list: {
segment: {
name: 'Feature Flag 1 Exclusion Segment',
description: 'Feature Flag 1 Exclusion Segment',
context: 'home',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as sinon from 'sinon';
import { Connection, ConnectionManager, getRepository } from 'typeorm';
import { Connection, ConnectionManager } from 'typeorm';
import { Test, TestingModuleBuilder } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';

Expand Down Expand Up @@ -58,7 +58,7 @@ describe('Feature Flag Service Testing', () => {
mockList.enabled = true;
mockList.flagId = mockFlag1.id;
mockList.listType = 'individual';
mockList.list = {
mockList.segment = {
name: 'name',
id: uuid(),
context: 'context',
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit 0aac418

Please sign in to comment.