From 5df4bc6ae7730c430de51334dc47e9acdd86b535 Mon Sep 17 00:00:00 2001 From: Arne Gnisa Date: Mon, 18 Sep 2023 16:47:22 +0200 Subject: [PATCH] N21-1269 fix tests --- apps/server/src/modules/learnroom/service/board-copy.service.ts | 2 +- apps/server/src/modules/learnroom/service/rooms.service.ts | 2 +- .../src/modules/pseudonym/service/feathers-roster.service.ts | 2 +- .../src/modules/sharing/service/share-token.service.spec.ts | 2 +- apps/server/src/modules/sharing/service/share-token.service.ts | 2 +- apps/server/src/modules/sharing/uc/share-token.uc.spec.ts | 2 +- apps/server/src/modules/sharing/uc/share-token.uc.ts | 2 +- apps/server/src/modules/task/index.ts | 1 - 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/server/src/modules/learnroom/service/board-copy.service.ts b/apps/server/src/modules/learnroom/service/board-copy.service.ts index f2c2e321dfc..b419c9f0593 100644 --- a/apps/server/src/modules/learnroom/service/board-copy.service.ts +++ b/apps/server/src/modules/learnroom/service/board-copy.service.ts @@ -17,7 +17,7 @@ import { LegacyLogger } from '@src/core/logger'; import { CopyElementType, CopyHelperService, CopyStatus } from '@src/modules/copy-helper'; import { getResolvedValues } from '@src/modules/files-storage/helper'; import { LessonCopyService } from '@src/modules/lesson/service'; -import { TaskCopyService } from '@src/modules/task'; +import { TaskCopyService } from '@src/modules/task/service'; import { sortBy } from 'lodash'; type BoardCopyParams = { diff --git a/apps/server/src/modules/learnroom/service/rooms.service.ts b/apps/server/src/modules/learnroom/service/rooms.service.ts index 2137d39c724..24bffb03f4f 100644 --- a/apps/server/src/modules/learnroom/service/rooms.service.ts +++ b/apps/server/src/modules/learnroom/service/rooms.service.ts @@ -3,7 +3,7 @@ import { Injectable } from '@nestjs/common'; import { Board, BoardExternalReferenceType, ColumnBoardTarget, EntityId } from '@shared/domain'; import { BoardRepo, LessonRepo } from '@shared/repo'; import { ColumnBoardService } from '@src/modules/board'; -import { TaskService } from '@src/modules/task/service/task.service'; +import { TaskService } from '@src/modules/task/service'; import { ColumnBoardTargetService } from './column-board-target.service'; @Injectable() diff --git a/apps/server/src/modules/pseudonym/service/feathers-roster.service.ts b/apps/server/src/modules/pseudonym/service/feathers-roster.service.ts index 1d57719c466..0951c0dd18c 100644 --- a/apps/server/src/modules/pseudonym/service/feathers-roster.service.ts +++ b/apps/server/src/modules/pseudonym/service/feathers-roster.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { NotFoundLoggableException } from '@shared/common/loggable-exception'; import { Course, EntityId, Pseudonym, RoleName, RoleReference, UserDO } from '@shared/domain'; -import { CourseService } from '@src/modules/learnroom/service/course.service'; +import { CourseService } from '@src/modules/learnroom/service'; import { ToolContextType } from '@src/modules/tool/common/enum'; import { ContextExternalTool, ContextRef } from '@src/modules/tool/context-external-tool/domain'; import { ContextExternalToolService } from '@src/modules/tool/context-external-tool/service'; diff --git a/apps/server/src/modules/sharing/service/share-token.service.spec.ts b/apps/server/src/modules/sharing/service/share-token.service.spec.ts index 837c36eed8e..07192e09df8 100644 --- a/apps/server/src/modules/sharing/service/share-token.service.spec.ts +++ b/apps/server/src/modules/sharing/service/share-token.service.spec.ts @@ -4,7 +4,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { courseFactory, lessonFactory, setupEntities, shareTokenFactory, taskFactory } from '@shared/testing'; import { CourseService } from '@src/modules/learnroom/service/course.service'; import { LessonService } from '@src/modules/lesson/service'; -import { TaskService } from '@src/modules/task'; +import { TaskService } from '@src/modules/task/service'; import { ObjectId } from 'bson'; import { ShareTokenContextType, ShareTokenParentType } from '../domainobject/share-token.do'; import { ShareTokenRepo } from '../repo/share-token.repo'; diff --git a/apps/server/src/modules/sharing/service/share-token.service.ts b/apps/server/src/modules/sharing/service/share-token.service.ts index 3bb87a410f4..1c89c4c40c7 100644 --- a/apps/server/src/modules/sharing/service/share-token.service.ts +++ b/apps/server/src/modules/sharing/service/share-token.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { CourseService } from '@src/modules/learnroom/service/course.service'; import { LessonService } from '@src/modules/lesson/service'; -import { TaskService } from '@src/modules/task'; +import { TaskService } from '@src/modules/task/service'; import { ShareTokenContext, ShareTokenDO, diff --git a/apps/server/src/modules/sharing/uc/share-token.uc.spec.ts b/apps/server/src/modules/sharing/uc/share-token.uc.spec.ts index 85280c20dc1..b7fd8403b7a 100644 --- a/apps/server/src/modules/sharing/uc/share-token.uc.spec.ts +++ b/apps/server/src/modules/sharing/uc/share-token.uc.spec.ts @@ -20,7 +20,7 @@ import { CopyElementType, CopyStatus, CopyStatusEnum } from '@src/modules/copy-h import { CourseCopyService } from '@src/modules/learnroom'; import { CourseService } from '@src/modules/learnroom/service/course.service'; import { LessonCopyService } from '@src/modules/lesson/service'; -import { TaskCopyService } from '@src/modules/task'; +import { TaskCopyService } from '@src/modules/task/service'; import { ShareTokenContextType, ShareTokenParentType, ShareTokenPayload } from '../domainobject/share-token.do'; import { ShareTokenService } from '../service'; import { ShareTokenUC } from './share-token.uc'; diff --git a/apps/server/src/modules/sharing/uc/share-token.uc.ts b/apps/server/src/modules/sharing/uc/share-token.uc.ts index b8aeafb7029..de34ffe5239 100644 --- a/apps/server/src/modules/sharing/uc/share-token.uc.ts +++ b/apps/server/src/modules/sharing/uc/share-token.uc.ts @@ -7,7 +7,7 @@ import { CopyStatus } from '@src/modules/copy-helper'; import { CourseCopyService } from '@src/modules/learnroom'; import { CourseService } from '@src/modules/learnroom/service/course.service'; import { LessonCopyService } from '@src/modules/lesson/service'; -import { TaskCopyService } from '@src/modules/task'; +import { TaskCopyService } from '@src/modules/task/service'; import { ShareTokenContext, ShareTokenContextType, diff --git a/apps/server/src/modules/task/index.ts b/apps/server/src/modules/task/index.ts index 22c7d98fc17..62ab8a69e94 100644 --- a/apps/server/src/modules/task/index.ts +++ b/apps/server/src/modules/task/index.ts @@ -1,2 +1 @@ export * from './task.module'; -export { TaskCopyService, TaskService } from './service';