Skip to content

Commit

Permalink
N21-1319 clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed Nov 16, 2023
1 parent 6554267 commit c7c8067
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ToolContextType } from '../../../../common/enum';
import { ContextExternalToolType } from '../../../../context-external-tool/entity';

export class ExternalToolMetadataResponse {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ToolContextType } from '../../common/enum';
import { ContextExternalToolType } from '../../context-external-tool/entity';
import { ExternalToolMetadataResponse } from '../controller/dto';
import { ExternalToolMetadata } from '../domain';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { Module } from '@nestjs/common';
import { CommonToolModule } from '../common';
import { SchoolExternalToolService, SchoolExternalToolValidationService, SchoolExternalToolMetadataService } from './service';
import {
SchoolExternalToolService,
SchoolExternalToolValidationService,
SchoolExternalToolMetadataService,
} from './service';
import { ExternalToolModule } from '../external-tool';
import { ToolConfigModule } from '../tool-config.module';

@Module({
imports: [CommonToolModule, ExternalToolModule, ToolConfigModule],
providers: [SchoolExternalToolService, SchoolExternalToolValidationService, SchoolExternalToolMetadataService],
exports: [SchoolExternalToolService, SchoolExternalToolValidationService, SchoolExternalToolMetadataService],
providers: [SchoolExternalToolService, SchoolExternalToolValidationService, SchoolExternalToolMetadataService],
exports: [SchoolExternalToolService, SchoolExternalToolValidationService, SchoolExternalToolMetadataService],
})
export class SchoolExternalToolModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Test, TestingModule } from '@nestjs/testing';
import { ContextExternalToolRepo, SchoolExternalToolRepo } from '@shared/repo';
import { legacySchoolDoFactory, schoolExternalToolFactory } from '@shared/testing';
import { Logger } from '@src/core/logger';
import { ToolContextType } from '../../common/enum';
import { SchoolExternalTool, SchoolExternalToolMetadata } from '../domain';
import { SchoolExternalToolMetadataService } from './school-external-tool-metadata.service';

Expand Down Expand Up @@ -66,7 +65,7 @@ describe('SchoolExternalToolMetadataService', () => {
);

const schoolExternalToolMetadata: SchoolExternalToolMetadata = new SchoolExternalToolMetadata({
contextExternalToolCountPerContext: { course: 3, 'board-element': 3 },
contextExternalToolCountPerContext: { course: 3, boardElement: 3 },
});

schoolExternalToolRepo.findByExternalToolId.mockResolvedValue([schoolExternalTool, schoolExternalTool1]);
Expand Down

0 comments on commit c7c8067

Please sign in to comment.