Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechGrancow committed Nov 24, 2023
1 parent 8ec0b17 commit 0649f6d
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { UserService } from '@modules/user';
import { RocketChatService } from '@modules/rocketchat';
import { rocketChatUserFactory } from '@modules/rocketchat-user/domain/testing';
import { RocketChatUser, RocketChatUserService } from '@modules/rocketchat-user';
import { RegistrationPinService } from '@src/modules/registration-pin';
import { RegistrationPinService } from '@modules/registration-pin';
import { DeletionDomainModel } from '../domain/types/deletion-domain-model.enum';
import { DeletionLogService } from '../services/deletion-log.service';
import { DeletionRequestService } from '../services';
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/modules/deletion/uc/deletion-request.uc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FilesService } from '@modules/files/service';
import { AccountService } from '@modules/account/services';
import { RocketChatUserService } from '@modules/rocketchat-user';
import { RocketChatService } from '@modules/rocketchat';
import { RegistrationPinService } from '@src/modules/registration-pin';
import { RegistrationPinService } from '@modules/registration-pin';
import { DeletionRequestService } from '../services/deletion-request.service';
import { DeletionDomainModel } from '../domain/types/deletion-domain-model.enum';
import { DeletionLogService } from '../services/deletion-log.service';
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/modules/registration-pin/entity/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './registration-pin.entity';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { setupEntities } from '@shared/testing';
import { ObjectId } from '@mikro-orm/mongodb';
import { RegistrationPinEntity } from './registration-pin.entity';
import { RegistrationPinEntity } from '.';

describe(RegistrationPinEntity.name, () => {
beforeAll(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './registration-pin.entity.factory';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './factory';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Module } from '@nestjs/common';
import { LoggerModule } from '@src/core/logger';
import { RegistrationPinService } from './service/registration-pin.service';
import { RegistrationPinRepo } from './repo/registration-pin.repo';
import { RegistrationPinService } from './service';
import { RegistrationPinRepo } from './repo';

@Module({
imports: [LoggerModule],
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/modules/registration-pin/repo/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './registration-pin.repo';
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { EntityManager } from '@mikro-orm/mongodb';
import { Test, TestingModule } from '@nestjs/testing';
import { MongoMemoryDatabaseModule } from '@infra/database';
import { cleanupCollections, userFactory } from '@shared/testing';
import { RegistrationPinRepo } from './registration-pin.repo';
import { registrationPinEntityFactory } from '../entity/testing/factory/registration-pin.entity.factory';
import { RegistrationPinRepo } from '.';
import { registrationPinEntityFactory } from '../entity/testing';

describe(RegistrationPinRepo.name, () => {
let module: TestingModule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EntityManager } from '@mikro-orm/mongodb';
import { Injectable } from '@nestjs/common';
import { RegistrationPinEntity } from '../entity/registration-pin.entity';
import { RegistrationPinEntity } from '../entity';

@Injectable()
export class RegistrationPinRepo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { Test, TestingModule } from '@nestjs/testing';
import { setupEntities, userDoFactory } from '@shared/testing';
import { RegistrationPinService } from './registration-pin.service';
import { RegistrationPinRepo } from '../repo/registration-pin.repo';
import { RegistrationPinService } from '.';
import { RegistrationPinRepo } from '../repo';

describe(RegistrationPinService.name, () => {
let module: TestingModule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { RegistrationPinRepo } from '../repo/registration-pin.repo';
import { RegistrationPinRepo } from '../repo';

@Injectable()
export class RegistrationPinService {
Expand Down

0 comments on commit 0649f6d

Please sign in to comment.