Skip to content

Commit

Permalink
[Search] Fix tests (#7471)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly authored Oct 7, 2024
1 parent 9403160 commit 8b716f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getRepositoryToken } from '@nestjs/typeorm';
import { BillingSubscriptionService } from 'src/engine/core-modules/billing/services/billing-subscription.service';
import { EmailService } from 'src/engine/core-modules/email/email.service';
import { EnvironmentService } from 'src/engine/core-modules/environment/environment.service';
import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity';
import { FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service';
import { OnboardingService } from 'src/engine/core-modules/onboarding/onboarding.service';
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { UserWorkspaceService } from 'src/engine/core-modules/user-workspace/user-workspace.service';
Expand Down Expand Up @@ -35,10 +35,6 @@ describe('WorkspaceService', () => {
provide: getRepositoryToken(User, 'core'),
useValue: {},
},
{
provide: getRepositoryToken(FeatureFlagEntity, 'core'),
useValue: {},
},
{
provide: WorkspaceManagerService,
useValue: {},
Expand Down Expand Up @@ -71,6 +67,10 @@ describe('WorkspaceService', () => {
provide: WorkspaceInvitationService,
useValue: {},
},
{
provide: FeatureFlagService,
useValue: {},
},
],
}).compile();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { NestjsQueryTypeOrmModule } from '@ptc-org/nestjs-query-typeorm';

import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
import { BillingModule } from 'src/engine/core-modules/billing/billing.module';
import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { FileUploadModule } from 'src/engine/core-modules/file/file-upload/file-upload.module';
import { FileModule } from 'src/engine/core-modules/file/file.module';
Expand Down Expand Up @@ -36,7 +35,7 @@ import { WorkspaceService } from './services/workspace.service';
FileUploadModule,
WorkspaceMetadataCacheModule,
NestjsQueryTypeOrmModule.forFeature(
[User, Workspace, UserWorkspace, FeatureFlagEntity],
[User, Workspace, UserWorkspace],
'core',
),
UserWorkspaceModule,
Expand Down

0 comments on commit 8b716f9

Please sign in to comment.